Class: Rsm::Bundle::Install
- Inherits:
-
Rsm::Base
- Object
- Thor::Group
- Rsm::Base
- Rsm::Bundle::Install
- Defined in:
- lib/tasks/bundle/install.rb
Constant Summary
Constant Summary
Constants inherited from Rsm::Base
Constants included from Actions
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, #run_ruby_binary, #unpack_compressed_archive
Instance Method Details
- (Object) check_and_install
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 [:deployment] bundle_install << " --without #{[:without]}" if [:without] inside "." do run_ruby_binary "bundle check || #{bundle_install}" end end |