Class: Fantassh::Application
- Inherits:
-
Object
- Object
- Fantassh::Application
- Defined in:
- lib/fantassh/application.rb
Instance Method Summary collapse
-
#initialize ⇒ Application
constructor
A new instance of Application.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
6 7 8 9 |
# File 'lib/fantassh/application.rb', line 6 def initialize @entries = Entries.new @bash_history = BashHistory.new end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 |
# File 'lib/fantassh/application.rb', line 11 def run @entries.add(@bash_history.entries) # indent by whitespace so it doesn't show up in the history exec " ssh $(cat #{@entries.entries_file} | selecta)" end |