Class: BuildTool::ModuleActions::Fetch
- Defined in:
- lib/build-tool/command_actions.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(command, mod, verbose) ⇒ Fetch
constructor
A new instance of Fetch.
Methods inherited from Base
Constructor Details
#initialize(command, mod, verbose) ⇒ Fetch
Returns a new instance of Fetch.
119 120 121 122 123 124 125 |
# File 'lib/build-tool/command_actions.rb', line 119 def initialize( command, mod, verbose ) super( command, 20, :fetch, mod ) @verbose = verbose if !mod.vcs_required.fetching_supported? logger.info "Fetching/Rebase not supported by vcs #{mod.vcs.name}. Doing it in one step." end end |
Instance Method Details
#execute ⇒ Object
127 128 129 130 |
# File 'lib/build-tool/command_actions.rb', line 127 def execute() logger.info "Fetching remote changes." @module.fetch( @verbose ) end |