Class: Fantassh::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/fantassh/application.rb

Instance Method Summary collapse

Constructor Details

#initializeApplication

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

#runObject



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