Sha256: 767e3f1454c7636e1ec78219f6609172f0dbcce7b761b6ca85c9ccfae2cd725f

Contents?: true

Size: 571 Bytes

Versions: 8

Compression:

Stored size: 571 Bytes

Contents

require "terraspace-bundler"
TerraspaceBundler.logger = Terraspace.logger

class Terraspace::CLI
  class Bundle
    def initialize(options={})
      @options = options
    end

    def run
      TerraspaceBundler::CLI.start(args)
    end

    # Allows bundle to be called without install. So both work:
    #
    #    terraspace bundle
    #    terraspace bundle install
    #
    def args
      args = @options[:args]
      if args.empty? or args.first.include?('--')
        args.unshift("install")
      end
      args = ["bundle"] + args
      args
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
terraspace-0.2.4 lib/terraspace/cli/bundle.rb
terraspace-0.2.3 lib/terraspace/cli/bundle.rb
terraspace-0.2.2 lib/terraspace/cli/bundle.rb
terraspace-0.2.1 lib/terraspace/cli/bundle.rb
terraspace-0.2.0 lib/terraspace/cli/bundle.rb
terraspace-0.1.2 lib/terraspace/cli/bundle.rb
terraspace-0.1.1 lib/terraspace/cli/bundle.rb
terraspace-0.1.0 lib/terraspace/cli/bundle.rb