Sha256: 56cef6d4f6f566e93e8a872a7661d6e7125a3784566318dd0014e82f719ca9f0

Contents?: true

Size: 411 Bytes

Versions: 32

Compression:

Stored size: 411 Bytes

Contents

module Docman
  class GitPullCmd < Docman::Command

    register_command :git_pull

    def validate_command
      raise "Please provide 'context'" if @context.nil?
      raise "Context should be of type 'Info'" unless @context.is_a? Docman::Info
    end

    def execute
      with_logging() do
        log "Git pull target"
        GitUtil.pull(@context['root']['full_build_path'])
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
docman-0.0.107 lib/docman/commands/git_pull_cmd.rb
docman-0.0.106 lib/docman/commands/git_pull_cmd.rb
docman-0.0.105 lib/docman/commands/git_pull_cmd.rb
docman-0.0.104 lib/docman/commands/git_pull_cmd.rb
docman-0.0.103 lib/docman/commands/git_pull_cmd.rb
docman-0.0.102 lib/docman/commands/git_pull_cmd.rb
docman-0.0.101 lib/docman/commands/git_pull_cmd.rb
docman-0.0.100 lib/docman/commands/git_pull_cmd.rb
docman-0.0.99 lib/docman/commands/git_pull_cmd.rb
docman-0.0.98 lib/docman/commands/git_pull_cmd.rb
docman-0.0.97 lib/docman/commands/git_pull_cmd.rb
docman-0.0.96 lib/docman/commands/git_pull_cmd.rb
docman-0.0.95 lib/docman/commands/git_pull_cmd.rb
docman-0.0.94 lib/docman/commands/git_pull_cmd.rb
docman-0.0.93 lib/docman/commands/git_pull_cmd.rb
docman-0.0.92 lib/docman/commands/git_pull_cmd.rb
docman-0.0.91 lib/docman/commands/git_pull_cmd.rb
docman-0.0.90 lib/docman/commands/git_pull_cmd.rb
docman-0.0.89 lib/docman/commands/git_pull_cmd.rb
docman-0.0.88 lib/docman/commands/git_pull_cmd.rb