Sha256: 83a7313cf585ee8347a7c16dd710b92d78545d0417a990b3b19925c93ed385a6

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents

# CLI Module
module Middleman::Cli
  # A initializing Bundler
  class Bundle < Thor
    include Thor::Actions
    check_unknown_options!

    namespace :bundle

    desc 'bundle', 'Setup initial bundle', hide: true

    # The setup task
    def bundle
      run('bundle install') # , :capture => true)
    end
  end

  # A upgrading Bundler
  class Upgrade < Thor
    include Thor::Actions
    check_unknown_options!

    namespace :upgrade

    desc 'upgrade', 'Upgrade installed bundle'

    # The upgrade task
    def upgrade
      inside(ENV['MM_ROOT']) do
        run('bundle update') # , :capture => true)
      end
    end
  end

  # Map "u" to "upgrade"
  Base.map(
    'u' => 'upgrade'
  )
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
middleman-core-3.4.1 lib/middleman-core/cli/bundler.rb
middleman-core-3.4.0 lib/middleman-core/cli/bundler.rb