Class: Gritano::Console::Executor

Inherits:
Base
  • Object
show all
Defined in:
lib/gritano/console/executor.rb

Instance Method Summary collapse

Methods inherited from Base

add_command, before_each_command, #before_each_command_filter, bin_name, bin_name=, #check_git, #check_gritano, commands, commands=, #execute, #execute_without_filters, help, #unknown_command

Constructor Details

#initialize(stdin = STDIN, home_dir = Etc.getpwuid.dir, repo_path = Etc.getpwuid.dir) ⇒ Executor

Returns a new instance of Executor.



8
9
10
11
12
13
14
# File 'lib/gritano/console/executor.rb', line 8

def initialize(stdin = STDIN, home_dir = Etc.getpwuid.dir, repo_path = Etc.getpwuid.dir)
  @stdin = stdin
  @home_dir = home_dir
  @repo_path = repo_path
  @ssh_path = File.join(@home_dir, '.ssh')
  super(@stdin, @home_dir)
end