Class: Cir::Cli::Command
- Inherits:
-
Object
- Object
- Cir::Cli::Command
- Defined in:
- lib/cir/cli/command.rb
Overview
Wrapper class describing general command
Direct Known Subclasses
Instance Attribute Summary collapse
-
#args ⇒ Object
Attributes for parsed command line arguments.
-
#files ⇒ Object
Attributes for parsed command line arguments.
-
#global_args ⇒ Object
Attributes for parsed command line arguments.
Instance Method Summary collapse
-
#initialize ⇒ Command
constructor
Initiation of the object will get CIR_HOME.
-
#opts ⇒ Object
Parameter parser for this command.
-
#process ⇒ Object
Process given command with both global and command specific arguments on top of given files.
Constructor Details
#initialize ⇒ Command
Initiation of the object will get CIR_HOME
26 27 28 |
# File 'lib/cir/cli/command.rb', line 26 def initialize @cirHome = File.(ENV['CIR_HOME'] || "~/.cir/repository") end |
Instance Attribute Details
#args ⇒ Object
Attributes for parsed command line arguments
22 23 24 |
# File 'lib/cir/cli/command.rb', line 22 def args @args end |
#files ⇒ Object
Attributes for parsed command line arguments
22 23 24 |
# File 'lib/cir/cli/command.rb', line 22 def files @files end |
#global_args ⇒ Object
Attributes for parsed command line arguments
22 23 24 |
# File 'lib/cir/cli/command.rb', line 22 def global_args @global_args end |
Instance Method Details
#opts ⇒ Object
Parameter parser for this command
32 33 |
# File 'lib/cir/cli/command.rb', line 32 def opts end |
#process ⇒ Object
Process given command with both global and command specific arguments on top of given files
37 38 |
# File 'lib/cir/cli/command.rb', line 37 def process end |