Class: Sabre::Bundler

Inherits:
Command show all
Defined in:
lib/sabre/bundler.rb

Instance Method Summary collapse

Methods inherited from Command

#indent, #initialize, #method_missing, #on, #on_error, #on_host, #run, #to_s, #unindent

Methods included from Base

#cd, #cp, #echo, #mv, #set, #synchronize

Constructor Details

This class inherits a constructor from Sabre::Command

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sabre::Command

Instance Method Details

#install(options) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/sabre/bundler.rb', line 4

def install(options)
  directory = options[:directory]
  without = options[:without]

  cd directory
  run "bundle install --deployment --quiet --without #{ without.join(" ") }"
  echo "Bundle installed"
end