Sha256: 4fb70f8b4914723aa7fbdbaf29663c858ad076c1bff58abd4b49066d674f39a3

Contents?: true

Size: 712 Bytes

Versions: 12

Compression:

Stored size: 712 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

12 entries across 12 versions & 2 rubygems

Version Path
middleman-core-3.3.12 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.11 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.10 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.9 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.8 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.7 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.6 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.5 lib/middleman-core/cli/bundler.rb
middleman-core-cj-3.3.6 lib/middleman-core/cli/bundler.rb
middleman-core-cj-3.3.5 lib/middleman-core/cli/bundler.rb
middleman-core-cj-3.3.4 lib/middleman-core/cli/bundler.rb
middleman-core-3.3.4 lib/middleman-core/cli/bundler.rb