pleaserun 0.0.19 → 0.0.20
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/CHANGELOG.asciidoc +3 -0
- data/Gemfile.lock +1 -1
- data/lib/pleaserun/cli.rb +7 -6
- data/lib/pleaserun/platform/base.rb +1 -1
- data/pleaserun.gemspec +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: 84a11be503460d6af5609596f83c4995f278c920
|
4
|
+
data.tar.gz: 3ace8d7cac212d0406fd4fe4df71c1870d1509c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32f25ee793d36fe24e4c117f17982ddf83003d7d407cababa6af80403b6f61438a6d828469d2eac32ac7e57ca702620c1c6cb5921f94e792a89d134f32fde0a7
|
7
|
+
data.tar.gz: 8d1014835d3efe304e9c6524c7d634e1e5cf4af3f4449150780954255674fde584c2e9f7ce54a57c89c50abcd7a151ae88ad1c053f7ffd81146fa0aba52243eb
|
data/CHANGELOG.asciidoc
CHANGED
data/Gemfile.lock
CHANGED
data/lib/pleaserun/cli.rb
CHANGED
@@ -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
|
-
|
176
|
-
actions_script = File.join(
|
177
|
-
PleaseRun::Installer.install_files(runner,
|
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
|
-
|
210
|
-
|
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
|
-
|
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.
|
data/pleaserun.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
11
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cabin
|