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.87 lib/docman/commands/git_pull_cmd.rb
docman-0.0.86 lib/docman/commands/git_pull_cmd.rb
docman-0.0.85 lib/docman/commands/git_pull_cmd.rb
docman-0.0.84 lib/docman/commands/git_pull_cmd.rb
docman-0.0.83 lib/docman/commands/git_pull_cmd.rb
docman-0.0.82 lib/docman/commands/git_pull_cmd.rb
docman-0.0.81 lib/docman/commands/git_pull_cmd.rb
docman-0.0.80 lib/docman/commands/git_pull_cmd.rb
docman-0.0.79 lib/docman/commands/git_pull_cmd.rb
docman-0.0.78 lib/docman/commands/git_pull_cmd.rb
docman-0.0.77 lib/docman/commands/git_pull_cmd.rb
docman-0.0.76 lib/docman/commands/git_pull_cmd.rb