Class: CommandConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/command_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shell, view, scaffolder, hostname) ⇒ CommandConfiguration

Returns a new instance of CommandConfiguration.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/commands/command_configuration.rb', line 23

def initialize shell, view, scaffolder, hostname
	meta_config_file = MetaConfigFile.new shell
	runner = create_runner shell, view, meta_config_file
	@help_command = HelpCommand.new view
	@xhelp_command = XHelpCommand.new view
	@generate_command = GenerateCommand.new shell, view, scaffolder
	@upload_command = UploadCommand.new shell, view, hostname
	@upload_no_open_command = UploadNoOpenCommand.new @upload_command
	@upload_zipped_session_command = UploadZippedSessionCommand.new shell, view, hostname
	@init_session_command = InitSessionCommand.new view, runner
	@capture_single_run_command = CaptureSingleRunCommand.new shell, view, runner
	@revert_to_green_command = RevertToGreenCommand.new shell, view, meta_config_file, StateReader.new(shell)
	@start_command = StartCommand.new meta_config_file, runner, view, [@upload_command, @revert_to_green_command]
	@commands = [@help_command, @xhelp_command, @generate_command, @init_session_command, 
		@capture_single_run_command, @start_command, @revert_to_green_command,
		@upload_command, @upload_no_open_command, @upload_zipped_session_command]
end

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



21
22
23
# File 'lib/commands/command_configuration.rb', line 21

def commands
  @commands
end