conjur-debify 1.2.1 → 1.3.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: 359bcc8f9a8e3e959252ddd9dfc6565835960112
4
- data.tar.gz: fe8e6f7188ca5b48edd8b711f1de61ec7f055367
3
+ metadata.gz: 036cffe142434776c5b343709dd6180f53c3f9fb
4
+ data.tar.gz: c381c211706f3bfb8747b7e572b13129d4e8f76e
5
5
  SHA512:
6
- metadata.gz: fc4376d412168787a8a048ec19227e6d52e4490611431c046af12905baaa9519242726a869128d0aa4f4dbdd24e7e6612f0ecdd91df8a1a4d06808ab0854c86f
7
- data.tar.gz: 98b62906d20e7d615cda9727b9c448e27ca8d74e863aac5ec279ebee06f899ff15a26992291d235f8a844bbb98115ac60f1102816bcab8741978618295e2e3b1
6
+ metadata.gz: ed0a8d89e0196a0a315054c38a390209b1c3bd7895d1e17afd0326e79b8eaf743129edc487b968ec21d330960c48115741b8a1c21d25287b2eb56f2ddac7226e
7
+ data.tar.gz: 02a67909b16651936dff4c1b77c7767b14982a192784fca2be857c258f739c73156410f0412012804406101cbef030cb9242518c7634c9d336fa22606cb07aab
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.3.0
2
+
3
+ * Add `--volumes-from`
4
+
1
5
  # 1.2.1
2
6
 
3
7
  * Fix typo in error message
@@ -1,5 +1,5 @@
1
1
  module Conjur
2
2
  module Debify
3
- VERSION = "1.2.1"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
data/lib/conjur/debify.rb CHANGED
@@ -344,6 +344,9 @@ command "test" do |c|
344
344
  c.desc "Specify link for test container"
345
345
  c.flag [ :l, :link ], :multiple => true
346
346
 
347
+ c.desc "Specify volume for test container"
348
+ c.flag [ :'volumes-from' ], :multiple => true
349
+
347
350
  c.action do |global_options,cmd_options,args|
348
351
  raise "project-name is required" unless project_name = args.shift
349
352
  raise "test-script is required" unless test_script = args.shift
@@ -411,6 +414,7 @@ RUN touch /etc/service/conjur/down
411
414
  }
412
415
  options['Privileged'] = true if Docker.version['Version'] >= '1.10.0'
413
416
  options['Links'] = cmd_options[:link] if cmd_options[:link] && !cmd_options[:link].empty?
417
+ options['VolumesFrom'] = cmd_options[:'volumes-from'] if cmd_options[:'volumes-from'] && !cmd_options[:'volumes-from'].empty?
414
418
  if global_options[:'local-bundle']
415
419
  options['Binds']
416
420
  .push([ vendor_dir, "/src/#{project_name}/vendor" ].join(':'))
@@ -490,6 +494,9 @@ command "sandbox" do |c|
490
494
  c.desc "Specify link for container"
491
495
  c.flag [ :l, :link ], :multiple => true
492
496
 
497
+ c.desc "Specify volume for container"
498
+ c.flag [ :'volumes-from' ], :multiple => true
499
+
493
500
  c.desc 'Run dev-install in /src/<project-name>'
494
501
  c.default_value false
495
502
  c.switch [:'dev-install']
@@ -545,6 +552,7 @@ command "sandbox" do |c|
545
552
 
546
553
  options['Privileged'] = true if Docker.version['Version'] >= '1.10.0'
547
554
  options['Links'] = cmd_options[:link] unless cmd_options[:link].empty?
555
+ options['VolumesFrom'] = cmd_options[:'volumes-from'] unless cmd_options[:'volumes-from'].empty?
548
556
 
549
557
  if cmd_options[:kill]
550
558
  previous = Docker::Container.get(options['name']) rescue nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-debify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin