pleaserun 0.0.19 → 0.0.20

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: b5065fa8871473a71963fd4fa4b88bff1b02d917
4
- data.tar.gz: 9b91d791f43b1dc87915bff5b6041ce553b7733a
3
+ metadata.gz: 84a11be503460d6af5609596f83c4995f278c920
4
+ data.tar.gz: 3ace8d7cac212d0406fd4fe4df71c1870d1509c7
5
5
  SHA512:
6
- metadata.gz: 8291d39475e1aea265e86789a684955549214c65d082097889a93cc01e7f608c8204649cbbf8302224513fbe17f311842491cb56c05f8131e7287becf73d0d70
7
- data.tar.gz: acb94ae19d94f4db6d534c458075637412eee47862aa89f941c318885a0e49694a31b9bcb81dcc5ceade9a7de9cc2efda6906d4f15f26a11a13e597b0cc775ec
6
+ metadata.gz: 32f25ee793d36fe24e4c117f17982ddf83003d7d407cababa6af80403b6f61438a6d828469d2eac32ac7e57ca702620c1c6cb5921f94e792a89d134f32fde0a7
7
+ data.tar.gz: 8d1014835d3efe304e9c6524c7d634e1e5cf4af3f4449150780954255674fde584c2e9f7ce54a57c89c50abcd7a151ae88ad1c053f7ffd81146fa0aba52243eb
@@ -1,5 +1,8 @@
1
1
  = Pleaserun Changes and Releases
2
2
 
3
+ == 0.0.20 (May 13, 2016)
4
+ * The --install-prefix flag now sets the write path for both --install and --no-install (default) modes
5
+
3
6
  == 0.0.19 (May 6, 2016)
4
7
  * Fix bug in OS detection
5
8
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pleaserun (0.0.16)
4
+ pleaserun (0.0.19)
5
5
  cabin (> 0)
6
6
  clamp
7
7
  insist
@@ -172,9 +172,9 @@ are made. If it fails, nagios will not start. Yay!
172
172
  PleaseRun::Installer.install_files(runner, install_prefix, overwrite?)
173
173
  PleaseRun::Installer.install_actions(runner) if install_actions?
174
174
  else
175
- tmp = Stud::Temporary.directory
176
- actions_script = File.join(tmp, "install_actions.sh")
177
- PleaseRun::Installer.install_files(runner, tmp)
175
+ target = install_prefix || Stud::Temporary.directory
176
+ actions_script = File.join(target, "install_actions.sh")
177
+ PleaseRun::Installer.install_files(runner, target, overwrite?)
178
178
  PleaseRun::Installer.write_actions(runner, actions_script)
179
179
  end
180
180
  return 0
@@ -206,11 +206,12 @@ are made. If it fails, nagios will not start. Yay!
206
206
  platform_lib = "pleaserun/platform/#{v}"
207
207
  require(platform_lib)
208
208
 
209
- const = PleaseRun::Platform.constants.find { |c| c.to_s.downcase == v.downcase }
210
- raise PlatformLoadError, "Could not find platform named '#{v}' after loading library '#{platform_lib}'. This is probably a bug." if const.nil?
209
+ const_name = v.downcase.gsub(/-([a-z])/) { |s| s[1] }
210
+ const = PleaseRun::Platform.constants.find { |c| c.to_s.downcase == const_name.downcase }
211
+ raise PleaseRun::PlatformLoadError, "Could not find platform named '#{v}' after loading library '#{platform_lib}' (#{const_name}). This is probably a bug." if const.nil?
211
212
 
212
213
  return PleaseRun::Platform.const_get(const)
213
214
  rescue LoadError => e
214
- raise PlatformLoadError, "Failed to find or load platform '#{v}'. This could be a typo or a bug. If it helps, the error is: #{e}"
215
+ raise PleaseRun::PlatformLoadError, "Failed to find or load platform '#{v}'. This could be a typo or a bug. If it helps, the error is: #{e}"
215
216
  end # def load_platform
216
217
  end # class PleaseRun::CLI
@@ -145,7 +145,7 @@ class PleaseRun::Platform::Base
145
145
  # Get the platform name for this class.
146
146
  # The platform name is simply the lowercased class name, but this can be overridden by subclasses (but don't, because that makes things confusing!)
147
147
  def platform
148
- return self.class.name.split(/::/)[-1].downcase
148
+ self.class.name.split("::").last.gsub(/(?<=[^A-Z])[A-Z]+/, "-\\0").downcase
149
149
  end # def platform
150
150
 
151
151
  # Get the template path for this platform.
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec|
2
2
  files = File.read(__FILE__)[/^__END__$.*/m].split("\n")[1..-1]
3
3
 
4
4
  spec.name = "pleaserun"
5
- spec.version = "0.0.19"
5
+ spec.version = "0.0.20"
6
6
  spec.summary = "pleaserun"
7
7
  spec.description = "pleaserun"
8
8
  spec.license = "Apache 2.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pleaserun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cabin