Class: Opscode::CLI
- Inherits:
-
Object
- Object
- Opscode::CLI
- Defined in:
- lib/opscode.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
Instance Method Summary collapse
-
#initialize(argv, opts = {}) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize(argv, opts = {}) ⇒ CLI
Returns a new instance of CLI.
9 10 11 12 13 |
# File 'lib/opscode.rb', line 9 def initialize(argv, opts = {}) @stdout_io = opts[:stdout_io] || $stdout @scm = opts[:scm] || "git" @argv = Array(argv) end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
7 8 9 |
# File 'lib/opscode.rb', line 7 def argv @argv end |