class Terraspace::CLI::Bundle

Public Class Methods

new(options={}) click to toggle source
# File lib/terraspace/cli/bundle.rb, line 5
def initialize(options={})
  @options = options
end

Public Instance Methods

args() click to toggle source

Allows bundle to be called without install. So both work:

terraspace bundle
terraspace bundle install
# 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() click to toggle source
# File lib/terraspace/cli/bundle.rb, line 9
def run
  TerraspaceBundler.config.deep_merge!(Terraspace.config.bundle)
  TerraspaceBundler::CLI.start(args)
end