Class: Rsm::Bundle::Install

Inherits:
Rsm::Base
  • Object
show all
Defined in:
lib/tasks/bundle/install.rb

Constant Summary

Constants inherited from Rsm::Base

Rsm::Base::SERVERS

Constants included from Actions

Actions::TAR_OPTS

Instance Attribute Summary

Attributes inherited from Rsm::Base

#server, #socket_per_worker, #worker_processes

Instance Method Summary collapse

Methods inherited from Rsm::Base

#set_destination_root, #set_server, #set_worker_processes, source_root, template_path

Methods included from Actions

#application_root, #downloaded_file, #fetch_temporary_archive, #ruby_binary, #run_ruby_binary, #run_with_bundler, #unpack_compressed_archive

Instance Method Details

#check_and_installObject



7
8
9
10
11
12
13
14
# File 'lib/tasks/bundle/install.rb', line 7

def check_and_install
  bundle_install = "bundle install"
  bundle_install << " --deployment" if options[:deployment]
  bundle_install << " --without #{options[:without]}" if options[:without]
  inside "." do
    run_ruby_binary "bundle check || #{bundle_install}"
  end
end