Class: Rys::Bundler::Commands::BuildLocal
- Defined in:
- lib/rys/bundler/commands/build_local.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 |
# File 'lib/rys/bundler/commands/build_local.rb', line 10 def build_gem_from_git(dependency, source, path) if source.send(:local?) path.make_symlink(source.path) print_gem_status(dependency.name, 'symlinked') else command %{git clone --branch="#{source.branch}" "#{source.uri}" "#{path}"} print_gem_status(dependency.name, 'clonned') end end |
#build_gem_from_path(dependency, source, path) ⇒ Object
20 21 22 23 |
# File 'lib/rys/bundler/commands/build_local.rb', line 20 def build_gem_from_path(dependency, source, path) path.make_symlink(source.path) print_gem_status(dependency.name, 'symlinked') end |
#default_target_dir ⇒ Object
6 7 8 |
# File 'lib/rys/bundler/commands/build_local.rb', line 6 def default_target_dir 'local' end |