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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1238c4ba8ffe577d857b48fe3b76cc325c9f6666
4
- data.tar.gz: 43385f4179d25504f554a1628dab3e77d03cbe7e
3
+ metadata.gz: 8be94daef026188f376e990598508337b640edbb
4
+ data.tar.gz: 9e6bd0190d00092bc09562abf1a3e5d362b64fd6
5
5
  SHA512:
6
- metadata.gz: 39263a88c04d17902a765e5f62ac305eb574f51e59aeed722a4459438ea4d9d48a66527a5b98987bc376670f73bcb856770003b1385cad395a56c0cf61861fab
7
- data.tar.gz: 8d2b09c0b47a9608a69463108bde7c010651f6cd976364ed49ac1498a487de00f73a602d01bbcf949bfe391f2260c6c148e1d56698dd167feca4a62b39936012
6
+ metadata.gz: bd07ab28468f3373189433cb2ab82a81b2c7ea00e29b17db8a28790add824ffe0b745df3d045b2526a946c3d9219ac89b296d672e0ee5e3ab5cd46daec68cf9c
7
+ data.tar.gz: 204f8c2bd9221c232d1613ad201309f985adc58c207fe8cb20f48538b7943d23afc08117e92b547da42f921122efe42cf8df8e4a13eb888a7e51ba1a05bc2e2a
data/config/config.yaml CHANGED
@@ -50,6 +50,9 @@ deploy_targets:
50
50
  handler: :git_strip_builder
51
51
  hooks:
52
52
  builder:
53
+ before_execute:
54
+ - type: :git_pull
55
+ execution_dir: $PROJECT$
53
56
  after_execute:
54
57
  - type: :git_commit
55
58
  order: 100
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'
@@ -69,7 +69,7 @@ module Docman
69
69
  def add_action(name, hook, context = nil)
70
70
  hook['order'] = 0 unless hook['order']
71
71
  if @hooks.has_key? name
72
- @hooks[name] << {'type' => hook}
72
+ @hooks[name] << hook
73
73
  else
74
74
  @hooks[name] = [hook]
75
75
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.75"
2
+ VERSION = "0.0.76"
3
3
  end
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.75
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-17 00:00:00.000000000 Z
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