torquespec 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/torquespec/torquespec.rb +2 -1
- data/lib/torquespec/version.rb +1 -1
- metadata +3 -3
@@ -7,8 +7,9 @@ module TorqueSpec
|
|
7
7
|
metaclass = class << self; self; end
|
8
8
|
metaclass.send(:define_method, :deploy_paths) do
|
9
9
|
FileUtils.mkdir_p(TorqueSpec.knob_root) unless File.exist?(TorqueSpec.knob_root)
|
10
|
+
i = descriptors.size > 1 ? 0 : nil
|
10
11
|
descriptors.map do |descriptor|
|
11
|
-
DeploymentDescriptor.new(descriptor, self.display_name).path
|
12
|
+
DeploymentDescriptor.new(descriptor, "#{self.display_name}#{i&&i-=1}").path
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|
data/lib/torquespec/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torquespec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Crossley
|