Sha256: 0fd61311ef8de5a38c38aba24a5edf4412e33f8a576e675955687008225a75f1

Contents?: true

Size: 864 Bytes

Versions: 1

Compression:

Stored size: 864 Bytes

Contents

require 'kde-build/command/module_based'

module BuildTool

    class FetchCommand < ModuleBasedCommand

        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

        def is_module_ready( mod )
            mod.activate_ssh_key
            true
        end

        def execute_for_module( mod )

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

            mod.fetch
        end

    end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
build-tool-0.0.3 lib/kde-build/command/fetch.rb