kibo 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kibo/config.rb +3 -7
- data/lib/kibo/version.rb +1 -1
- data/man/kibo.1 +1 -1
- data/man/kibo.1.html +1 -1
- metadata +2 -2
data/lib/kibo/config.rb
CHANGED
@@ -79,23 +79,19 @@ end
|
|
79
79
|
class Kibo::Instance < String
|
80
80
|
attr :count, :role
|
81
81
|
|
82
|
-
def initialize(config, role, count)
|
82
|
+
def initialize(config, role, count, number=1)
|
83
83
|
@role, @count = role, count
|
84
84
|
|
85
|
-
super "#{config.namespace}-#{config.environment}-#{role}"
|
85
|
+
super "#{config.namespace}-#{config.environment}-#{role}#{number}"
|
86
86
|
end
|
87
87
|
|
88
|
-
def addons
|
89
|
-
[]
|
90
|
-
end
|
91
|
-
|
92
88
|
def instance_name
|
93
89
|
self.split("-", 2).last
|
94
90
|
end
|
95
91
|
|
96
92
|
class Freemium < self
|
97
93
|
def initialize(config, role, number)
|
98
|
-
super config, role, 1
|
94
|
+
super config, role, 1, number
|
99
95
|
@number = number
|
100
96
|
|
101
97
|
concat "#{@number}"
|
data/lib/kibo/version.rb
CHANGED
data/man/kibo.1
CHANGED
data/man/kibo.1.html
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kibo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
segments:
|
183
183
|
- 0
|
184
|
-
hash:
|
184
|
+
hash: 1075402584898748100
|
185
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
186
|
none: false
|
187
187
|
requirements:
|