Class: Rys::Bundler::Commands::BuildDeployment
- Defined in:
- lib/rys/bundler/commands/build_deployment.rb
Constant Summary
Constants inherited from Build
Rys::Bundler::Commands::Build::COMMENT_PREFIX
Instance Attribute Summary
Attributes inherited from Build
Instance Method Summary collapse
- #build_gem_from_git(dependency, source, path) ⇒ Object
- #build_gem_from_path(dependency, source, path) ⇒ Object
- #default_target_dir ⇒ Object
Methods inherited from Build
#initialize, run, #run, #run_revert
Methods inherited from Base
#command, #get_redmine_plugin!, #pastel, #prompt, #run, run, #ui
Constructor Details
This class inherits a constructor from Rys::Bundler::Commands::Build
Instance Method Details
#build_gem_from_git(dependency, source, path) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rys/bundler/commands/build_deployment.rb', line 10 def build_gem_from_git(dependency, source, path) if source.send(:local?) FileUtils.cp_r(source.path, path) print_gem_status(dependency.name, 'copied') else command %{git clone --depth=1 --branch="#{source.branch}" "#{source.uri}" "#{path}"} print_gem_status(dependency.name, 'clonned') end FileUtils.rm_rf(path.join('.git')) end |
#build_gem_from_path(dependency, source, path) ⇒ Object
22 23 24 25 |
# File 'lib/rys/bundler/commands/build_deployment.rb', line 22 def build_gem_from_path(dependency, source, path) FileUtils.cp_r(source.path, path) print_gem_status(dependency.name, 'copied') end |
#default_target_dir ⇒ Object
6 7 8 |
# File 'lib/rys/bundler/commands/build_deployment.rb', line 6 def default_target_dir 'gems' end |