Sha256: ec338293301a45b3bcd2fe1a785fd8c9cd9313e22c5dd4b26c6b7d79d3566634

Contents?: true

Size: 420 Bytes

Versions: 6

Compression:

Stored size: 420 Bytes

Contents

class Lono::CLI
  class Bundle < Abstract
    def run
      Lono::Bundler::CLI.start(args)
    end

    # Allows bundle to be called without install. So both work:
    #
    #    lono bundle
    #    lono 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

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/cli/bundle.rb
lono-8.0.0.pre.rc5 lib/lono/cli/bundle.rb
lono-8.0.0.pre.rc4 lib/lono/cli/bundle.rb
lono-8.0.0.pre.rc3 lib/lono/cli/bundle.rb
lono-8.0.0.pre.rc2 lib/lono/cli/bundle.rb
lono-8.0.0.pre.rc1 lib/lono/cli/bundle.rb