dust-deploy 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
data/changelog.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.10.2
5
+ ------------
6
+
7
+ - cjdroute now accepts the "commit" configuration option
8
+
9
+
4
10
  0.10.1
5
11
  ------------
6
12
 
@@ -143,6 +143,12 @@ class Cjdroute< Recipe
143
143
  return ::Dust.print_failed 'error cloning git repository' unless ret[:exit_code] == 0
144
144
  end
145
145
 
146
+ # reset to the wanted commit if given
147
+ if @config['commit']
148
+ ::Dust.print_msg "resetting to commit: #{@config['commit']}"
149
+ ::Dust.print_result @node.exec("cd #{@config['build_dir']}; git reset --hard #{@config['commit']}")[:exit_code]
150
+ end
151
+
146
152
  puts
147
153
  true
148
154
  end
data/lib/dust/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dust
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 10
8
- - 1
9
- version: 0.10.1
8
+ - 2
9
+ version: 0.10.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - kris kechagia
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-04-05 00:00:00 +02:00
17
+ date: 2012-04-11 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency