clc-promote 0.4.0.dev.8 → 0.4.0.dev.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/promote/rake_tasks.rb +11 -0
- data/lib/promote/versioner.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2934a8168bb2623f8e419c319e74f3245c987cbe
|
4
|
+
data.tar.gz: a9558f2c9e9edcc6a6a9ecf4b87f26ea4155fd47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e35fb4338176e5b364fd38c414096412e914dcc4dd3a6c5077bd080400184fe541e1ea3e6b50d847de5fc84555bb1c01e37f629441f271654143ebee03b9dca2
|
7
|
+
data.tar.gz: ef0fe1e55d1ab7ec15b2fc7d75bfc0be0b645d1d1de87f249b1e766dfdc5154daa0ffcd71b760a1c8b9c700e2aad41eb9db0fdf7c0f0d65f6b95f51240582585
|
data/lib/promote/rake_tasks.rb
CHANGED
@@ -16,6 +16,7 @@ module Promote
|
|
16
16
|
define_version_cookbooks
|
17
17
|
define_version_environment
|
18
18
|
define_version_environments
|
19
|
+
define_sync_berksfile
|
19
20
|
define_sync_berksfiles
|
20
21
|
define_upload_cookbooks
|
21
22
|
define_upload_environment
|
@@ -47,6 +48,16 @@ module Promote
|
|
47
48
|
end
|
48
49
|
end
|
49
50
|
|
51
|
+
def define_sync_berksfile
|
52
|
+
namespace "Promote" do
|
53
|
+
desc "Syncs a Berksfile.lock file"
|
54
|
+
task "sync_berksfile", :cookbook do |task, args|
|
55
|
+
puts "Syncing berksfile.lock for #{args.cookbook}..."
|
56
|
+
@versioner.sync_berksfile(args.cookbook)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
50
61
|
def define_sync_berksfiles
|
51
62
|
namespace "Promote" do
|
52
63
|
desc "Syncs all Berksfile.lock files"
|
data/lib/promote/versioner.rb
CHANGED