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.



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

#executeObject



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

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