simp-rake-helpers 5.0.2 → 5.1.0

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: 83f68817cfe206fc61419b4944d535d1439bf6f2
4
- data.tar.gz: f0fa84125ad440c1441dc54009d3eba64b986ab7
3
+ metadata.gz: 0672537bd3cf9652b8b506338ef8396e4306be52
4
+ data.tar.gz: 185c5f2c1215a53829d1cafaefe9d19803490b26
5
5
  SHA512:
6
- metadata.gz: 0a5570062e493e4bac9b0c84831a57471a7d79a09176748badba18fff24701373eec0ebbf473a06cdc60af97917af48820f409457e107ae977e6c6d763b49e75
7
- data.tar.gz: b51d7180fba3ac1e15cf96eacb67cfb55466b92c0020696e7bd40517f0ecccc7a4a4bc6644fd42900c7d061827f4b08ff15bb28e35ad78cd501f07911205d033
6
+ metadata.gz: 67a5b4a6c3d4d84855584640f29830914728734d9e8a317289515c2ec53d869cdd6138e632f85bf52723bffb504f63b07d678bba0b819eeb76fa4a9fb2dd0582
7
+ data.tar.gz: 0935c76a23af8dc066c2c54465f1cb1a451f0ea899d866e1e7028863b43b7b8eab812729d2dbcbbfb5938b0591f18e03d16a632a22543de34c971867e505dafa
@@ -1,3 +1,8 @@
1
+ ### 5.1.0 / 2017-10-03
2
+ * Fixed bug in `deps:record` that prevented recording to Puppetfile.[:method]
3
+ * Added new `:reference` parameter to `deps:record` for identifying repos to
4
+ record
5
+
1
6
  ### 5.0.2 / 2017-10-03
2
7
  * Determine the build/rpm_metadata/* files when the pkg:rpm
3
8
  rake task is called, not when the rake object is constructed.
@@ -319,13 +319,16 @@ module Simp::Rake::Build
319
319
  Records the current dependencies into Puppetfile.stable.
320
320
 
321
321
  Arguments:
322
- * :source => The source Puppetfile to use (Default => 'tracking')
322
+ * :method => Save to Puppetfile.[method] (Default => 'stable')
323
+ * :reference => Use Puppetfile.[reference] to reference which repos
324
+ should be recorded (Default => 'tracking')
323
325
  EOM
324
- task :record, [:method] do |t,args|
325
- args.with_defaults(:source => 'tracking')
326
- r10k_helper = R10KHelper.new("Puppetfile.#{args[:source]}")
326
+ task :record, [:method,:reference] do |t,args|
327
+ args.with_defaults(:method => 'stable')
328
+ args.with_defaults(:reference => 'tracking')
327
329
 
328
- File.open('Puppetfile.stable','w'){|f| f.puts r10k_helper.puppetfile }
330
+ r10k_helper = R10KHelper.new("Puppetfile.#{args[:reference]}")
331
+ File.open("Puppetfile.#{args[:method]}",'w'){|f| f.puts r10k_helper.puppetfile }
329
332
  end
330
333
 
331
334
  desc <<-EOM
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '5.0.2'
5
+ VERSION = '5.1.0'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-rake-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer