Class: Terraspace::CLI::Bundle
- Inherits:
-
Object
- Object
- Terraspace::CLI::Bundle
- Defined in:
- lib/terraspace/cli/bundle.rb
Instance Method Summary collapse
-
#args ⇒ Object
Allows bundle to be called without install.
-
#initialize(options = {}) ⇒ Bundle
constructor
A new instance of Bundle.
- #run ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Bundle
Returns a new instance of Bundle.
5 6 7 |
# File 'lib/terraspace/cli/bundle.rb', line 5 def initialize(={}) @options = end |
Instance Method Details
#args ⇒ Object
Allows bundle to be called without install. So both work:
terraspace bundle
terraspace bundle install
19 20 21 22 23 24 25 26 |
# File 'lib/terraspace/cli/bundle.rb', line 19 def args args = @options[:args] if args.empty? or args.first.include?('--') args.unshift("install") end args = ["bundle"] + args args end |
#run ⇒ Object
9 10 11 12 |
# File 'lib/terraspace/cli/bundle.rb', line 9 def run TerraspaceBundler.config.deep_merge!(Terraspace.config.bundle) TerraspaceBundler::CLI.start(args) end |