iron_worker_ng 0.16.2 → 0.16.3
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 +4 -4
- data/bin/iron_worker +5 -1
- data/lib/iron_worker_ng/cli.rb +8 -1
- data/lib/iron_worker_ng/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1bb7f49b2e34e9e2a4e4043b3a15b2a78b351a15
|
|
4
|
+
data.tar.gz: dabea66df219251596de9ddcd95aa184fdb3c995
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 719ae62f94f82fd2d120b12193afa1fa206d5624855e0d27a17642c9762012fc17b7c6f8897d59182c925c085030afb3db66ae2fc3f92fd188d83db35eb663cc
|
|
7
|
+
data.tar.gz: 72e1f4c6e991acff3409629d0c7b979b438856c98a54fa6b1142ada922948ea0802331c71dae9f69bd681fa8c873218bf6165105c4b5c1d7e6ef56fccff19f76
|
data/bin/iron_worker
CHANGED
|
@@ -19,11 +19,15 @@ IronCore::Logger.logger.formatter = IronWorkerCLILoggerFormatter.new
|
|
|
19
19
|
@cli = IronWorkerNG::CLI.new
|
|
20
20
|
|
|
21
21
|
def common_opts(opts)
|
|
22
|
+
opts.on('--config CONFIG', 'config file') do |v|
|
|
23
|
+
@cli.config = v
|
|
24
|
+
end
|
|
25
|
+
|
|
22
26
|
opts.on('-e', '--env ENV', 'environment') do |v|
|
|
23
27
|
@cli.env = v
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
opts.on('--project-id PROJECT_ID', '
|
|
30
|
+
opts.on('--project-id PROJECT_ID', 'project id') do |v|
|
|
27
31
|
@cli.project_id = v
|
|
28
32
|
end
|
|
29
33
|
end
|
data/lib/iron_worker_ng/cli.rb
CHANGED
|
@@ -6,6 +6,7 @@ module IronWorkerNG
|
|
|
6
6
|
def initialize
|
|
7
7
|
@client = nil
|
|
8
8
|
|
|
9
|
+
@config = nil
|
|
9
10
|
@env = nil
|
|
10
11
|
@project_id = nil
|
|
11
12
|
end
|
|
@@ -16,6 +17,12 @@ module IronWorkerNG
|
|
|
16
17
|
beta == '1' || beta == 1 || beta == 'true' || beta == true || beta == 'beta'
|
|
17
18
|
end
|
|
18
19
|
|
|
20
|
+
def config=(config)
|
|
21
|
+
@client = nil
|
|
22
|
+
|
|
23
|
+
@config = config
|
|
24
|
+
end
|
|
25
|
+
|
|
19
26
|
def env=(env)
|
|
20
27
|
@client = nil
|
|
21
28
|
|
|
@@ -40,7 +47,7 @@ module IronWorkerNG
|
|
|
40
47
|
if @client.nil?
|
|
41
48
|
log_group "Creating client"
|
|
42
49
|
|
|
43
|
-
@client = IronWorkerNG::Client.new(:env => @env, :project_id => @project_id)
|
|
50
|
+
@client = IronWorkerNG::Client.new(:config => @config, :env => @env, :project_id => @project_id)
|
|
44
51
|
|
|
45
52
|
project = client.projects.get
|
|
46
53
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iron_worker_ng
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.16.
|
|
4
|
+
version: 0.16.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kirilenko
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: iron_core
|