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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 887287dace1790e9b84f2606e6e76a98aea970c4
4
- data.tar.gz: 73ec929b6ad824e2c5fa99ea9f5cf2fac60b022e
3
+ metadata.gz: 2934a8168bb2623f8e419c319e74f3245c987cbe
4
+ data.tar.gz: a9558f2c9e9edcc6a6a9ecf4b87f26ea4155fd47
5
5
  SHA512:
6
- metadata.gz: c19cfce04a921c74f2af4cbf25cd70c27af31aae286ab2f7836c2da7f159c85cb5f4341221eb1f87d21f7531bef4d1edfe6c7da4ba41c48005c3032e5f1a1bb9
7
- data.tar.gz: 0cb537e318749df2efaa3545a5dbdf5a5782ec1aa2591c3f093f87a9b43ca594b928767223c920d267411cee2088fd2985f110169ff91b186b0966b313476250
6
+ metadata.gz: e35fb4338176e5b364fd38c414096412e914dcc4dd3a6c5077bd080400184fe541e1ea3e6b50d847de5fc84555bb1c01e37f629441f271654143ebee03b9dca2
7
+ data.tar.gz: ef0fe1e55d1ab7ec15b2fc7d75bfc0be0b645d1d1de87f249b1e766dfdc5154daa0ffcd71b760a1c8b9c700e2aad41eb9db0fdf7c0f0d65f6b95f51240582585
@@ -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"
@@ -45,6 +45,10 @@ module Promote
45
45
  results
46
46
  end
47
47
 
48
+ def sync_berksfile(cookbook_name)
49
+ Utils.sync_berksfile(File.join(config.cookbook_directory, cookbook_name))
50
+ end
51
+
48
52
  def sync_berksfiles
49
53
  Utils.sync_berksfiles(config.cookbook_directory)
50
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-promote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.dev.8
4
+ version: 0.4.0.dev.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud