Class: BuildTool::ModuleActions::Fetch

Inherits:
Base
  • Object
show all
Defined in:
lib/build-tool/command_actions.rb

Instance Method Summary collapse

Methods inherited from Base

#do

Constructor Details

#initialize(command, mod) ⇒ Fetch

Returns a new instance of Fetch.



175
176
177
178
179
180
# File 'lib/build-tool/command_actions.rb', line 175

def initialize( command, mod )
    super( command, 20, :fetch, mod )
    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

#executeObject



182
183
184
185
# File 'lib/build-tool/command_actions.rb', line 182

def execute()
    logger.info "Fetching remote changes."
    @module.fetch
end