Class: BuildTool::FetchCommand

Inherits:
ModuleBasedCommand show all
Defined in:
lib/kde-build/command/fetch.rb

Instance Method Summary collapse

Methods inherited from ModuleBasedCommand

#execute

Methods inherited from Command

#complete, #show_help

Constructor Details

#initializeFetchCommand

Returns a new instance of FetchCommand.



7
8
9
10
11
12
13
14
# File 'lib/kde-build/command/fetch.rb', line 7

def initialize
    super( 'fetch', false )
    self.short_desc = "Fetch changes from the remote repository."
    self.description = <<-"EOS"
Fetch changes from the remote repository without rebasing if the used vcs
supports it. If the vcs doesn't the module is skipped.
    EOS
end

Instance Method Details

#execute_for_module(mod) ⇒ Object



21
22
23
24
25
26
27
28
# File 'lib/kde-build/command/fetch.rb', line 21

def execute_for_module( mod )

    $log.info( "###############################################################" )
    $log.info( "### Fetching module #{mod.name}" )
    $log.info( "###############################################################" )

    mod.fetch
end

#is_module_ready(mod) ⇒ Object



16
17
18
19
# File 'lib/kde-build/command/fetch.rb', line 16

def is_module_ready( mod )
    mod.activate_ssh_key
    true
end