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, verbose) ⇒ Fetch

Returns a new instance of Fetch.



120
121
122
123
124
125
126
# File 'lib/build-tool/command_actions.rb', line 120

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

#executeObject



128
129
130
131
# File 'lib/build-tool/command_actions.rb', line 128

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