nutkins 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90d7c75d8463ff5ca9732fc90cf4df8c4507f02a
4
- data.tar.gz: a2ec3f8ea3975c0163a05195c0e5fe262d8fea34
3
+ metadata.gz: 8a50484d569a045dee261e24b487378e573c7cfc
4
+ data.tar.gz: 6c0db6d0f5501ae03af069158077e6c03faa858f
5
5
  SHA512:
6
- metadata.gz: 698c0f034515cb1e16e6baa7f7b91673d6aa526ab1dd430a2143817d6176946e0421d0f30a79ed0a018899a2928879832b2f384835f1f006878b5f0c6b583a20
7
- data.tar.gz: d6b7a23057cca12e2cac98ea7b947566e44a62dff7c95dc1553caa2e77404b4c785a5811a2b53ac807e3e35dd5273e8327f7bf2249c52cee16f3cdb7356d02c7
6
+ metadata.gz: a4e534198a34b3e27dc6a1858449feda482c6d4fa7a211b47595c482c1c3167df7779e55bdb7d831f2b4a198f0ff29b3c9177f98a001ea8743c923672a391b85
7
+ data.tar.gz: 2e7aca7855fbb48911aeec5b77f944c355b6445da42c6caa5070a7c4e42d8ff544ed53c9ea2e153a928821477b0e98971ed57502250ff75c65ad64eed0c10a2f
data/bin/nutkins CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'bundler/setup'
4
4
  require 'nutkins'
5
+ require 'nutkins/version'
5
6
  require 'moister'
6
7
  require 'ostruct'
7
8
 
@@ -11,7 +12,8 @@ module Nutkins::Command
11
12
  command = nil
12
13
 
13
14
  Moister::SubcommandOptionParser.new do |op|
14
- op.banner = 'usage: nutkins [global options] command [command options]'
15
+ op.banner = "usage: nutkins #{Nutkins::VERSION} [global options] command [command options]"
16
+ op.version = Nutkins::VERSION
15
17
 
16
18
  op.for_all do |op|
17
19
  op.on_tail '-h', '--help', 'show this help message' do
@@ -1,3 +1,3 @@
1
1
  module Nutkins
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/nutkins.rb CHANGED
@@ -74,6 +74,10 @@ module Nutkins
74
74
  src = File.absolute_path File.join(img_dir, VOLUMES_PATH, src)
75
75
  flags.push '-v', "#{src}:#{dest}"
76
76
  end
77
+
78
+ (create_cfg["env"] or {}).each do |name, val|
79
+ flags.push '-e', "#{name}=#{val}"
80
+ end
77
81
  end
78
82
 
79
83
  tag = get_tag img_name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Pike
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-16 00:00:00.000000000 Z
11
+ date: 2016-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler