Sha256: 5d449320ee81bd3e46de86b181ebbcfdbe9f2865d4b27043f80c6eaf145f0b27

Contents?: true

Size: 732 Bytes

Versions: 35

Compression:

Stored size: 732 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 --without development test')#, :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

35 entries across 35 versions & 2 rubygems

Version Path
middleman-core-x86-mingw32-3.0.14 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.14 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.13 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.13 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.12 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.12 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.12.pre.1 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.12.pre.1 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.11 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.11 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.10 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.10.pre.1 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.10.pre.1 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.9 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.9 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.8 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.8 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.8.pre.2 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.8.pre.2 lib/middleman-core/cli/bundler.rb
middleman-core-x86-mingw32-3.0.8.pre.1 lib/middleman-core/cli/bundler.rb