Sha256: 46fb6246446217a6afa2493cb0430979a165e1a3f322682e3d73467b3a06fa1f

Contents?: true

Size: 754 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

Version Path
middleman-core-3.0.0 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.0.rc.4 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.0.rc.3 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.0.rc.2 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.0.rc.1 lib/middleman-core/cli/bundler.rb
middleman-core-3.0.0.beta.3 lib/middleman-core/cli/bundler.rb