docman 0.0.75 → 0.0.76
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/config.yaml +3 -0
- data/lib/application.rb +1 -0
- data/lib/docman/commands/command.rb +1 -1
- data/lib/docman/commands/git_pull_cmd.rb +18 -0
- data/lib/docman/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8be94daef026188f376e990598508337b640edbb
|
4
|
+
data.tar.gz: 9e6bd0190d00092bc09562abf1a3e5d362b64fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd07ab28468f3373189433cb2ab82a81b2c7ea00e29b17db8a28790add824ffe0b745df3d045b2526a946c3d9219ac89b296d672e0ee5e3ab5cd46daec68cf9c
|
7
|
+
data.tar.gz: 204f8c2bd9221c232d1613ad201309f985adc58c207fe8cb20f48538b7943d23afc08117e92b547da42f921122efe42cf8df8e4a13eb888a7e51ba1a05bc2e2a
|
data/config/config.yaml
CHANGED
data/lib/application.rb
CHANGED
@@ -28,6 +28,7 @@ require 'docman/commands/create_symlink_cmd'
|
|
28
28
|
require 'docman/commands/execute_script_cmd'
|
29
29
|
require 'docman/commands/clean_changed_cmd'
|
30
30
|
require 'docman/commands/git_commit_cmd'
|
31
|
+
require 'docman/commands/git_pull_cmd'
|
31
32
|
require 'docman/commands/git_copy_repo_content_cmd'
|
32
33
|
require 'docman/taggers/tagger'
|
33
34
|
require 'docman/taggers/incremental_tagger'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Docman
|
2
|
+
class GitPullCmd < Docman::Command
|
3
|
+
|
4
|
+
register_command :git_pull
|
5
|
+
|
6
|
+
def validate_command
|
7
|
+
raise "Please provide 'context'" if @context.nil?
|
8
|
+
raise "Context should be of type 'Info'" unless @context.is_a? Docman::Info
|
9
|
+
end
|
10
|
+
|
11
|
+
def execute
|
12
|
+
with_logging() do
|
13
|
+
log "Git pull target"
|
14
|
+
GitUtil.pull(@context['root']['full_build_path'])
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/docman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.76
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tolstikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- lib/docman/commands/execute_script_cmd.rb
|
186
186
|
- lib/docman/commands/git_commit_cmd.rb
|
187
187
|
- lib/docman/commands/git_copy_repo_content_cmd.rb
|
188
|
+
- lib/docman/commands/git_pull_cmd.rb
|
188
189
|
- lib/docman/commands/ssh_target_checker.rb
|
189
190
|
- lib/docman/commands/target_checker.rb
|
190
191
|
- lib/docman/config.rb
|