Class: Climatic::ConfigLayers::CommandLineLayer

Inherits:
SuperStack::Layer
  • Object
show all
Includes:
CommandLineManagerBinder
Defined in:
lib/climatic/config_layers/command_line_layer.rb

Constant Summary collapse

CONFIG_ROOT_DIR =
%w(etc config).freeze
DEFAULT_COMMAND_LINE_DEFINITION_FILE =
'command_line.yml'.freeze
COMMAND_LINE_MANAGER_CLASS =
UltraCommandLine::Manager::Base

Constants included from CommandLineManagerBinder

Climatic::ConfigLayers::CommandLineManagerBinder::SUB_COMMANDS_HELP_HEADER

Instance Attribute Summary

Attributes included from CommandLineManagerBinder

#command_line_manager

Instance Method Summary collapse

Methods included from CommandLineManagerBinder

#cmd_line_args, #cmd_line_args=, #extra_parameters, #help, #load

Constructor Details

#initialize(command_line_manager = self.class.default_command_line_manager) ⇒ CommandLineLayer

Returns a new instance of CommandLineLayer.



14
15
16
17
# File 'lib/climatic/config_layers/command_line_layer.rb', line 14

def initialize(command_line_manager = self.class.default_command_line_manager)
  # raise UltraCommandLine::Error, 'Invalid command line manager !' unless command_line_manager.is_a? MANAGER_CLASS
  @command_line_manager = command_line_manager
end