Class: CommandConfiguration
- Inherits:
-
Object
- Object
- CommandConfiguration
- Defined in:
- lib/commands/command_configuration.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Instance Method Summary collapse
-
#initialize(shell, view, scaffolder, hostname) ⇒ CommandConfiguration
constructor
A new instance of CommandConfiguration.
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 = MetaConfigFile.new shell runner = create_runner shell, view, @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, , StateReader.new(shell) @start_command = StartCommand.new , 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
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
21 22 23 |
# File 'lib/commands/command_configuration.rb', line 21 def commands @commands end |