pleaserun 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.asciidoc +3 -0
- data/Gemfile.lock +3 -3
- data/Makefile +1 -1
- data/lib/pleaserun/cli.rb +12 -1
- data/lib/pleaserun/version.rb +3 -0
- data/pleaserun.gemspec +3 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 816479bedcc5fc1bb0166b8fd18fce5e2c15adf3
|
4
|
+
data.tar.gz: cdcc4a4a80b6f79b7bb1737ab012186f9faeff75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac3efe244a6641b236d9074d216a1dda6a16ddb22cd070595e098d463923e9e2433231aa37b4f83e986c95d63fe6201fa55c10b86c758646bf37d5eee119edaa
|
7
|
+
data.tar.gz: 89b1b59a1099186506e0dee56c602703ff6bbdb146f0635e0f8454a0ffae5c92737ec9d8ab60a4284cbb8190f5912aa02824bb60fe3018c48c59b42b32f4dafb
|
data/CHANGELOG.asciidoc
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= Pleaserun Changes and Releases
|
2
2
|
|
3
|
+
== 0.0.29 (April 17, 2017)
|
4
|
+
* `pleaserun --version` will now write the version of pleaserun and exit. (#125)
|
5
|
+
|
3
6
|
== 0.0.28 (February 6, 2017)
|
4
7
|
* sysv and upstart will now `set -a` before loading /etc/default and
|
5
8
|
/etc/sysconfig files. This is to bring them in line with what users are
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pleaserun (0.0.
|
4
|
+
pleaserun (0.0.29)
|
5
5
|
cabin (> 0)
|
6
6
|
clamp
|
7
7
|
dotenv
|
@@ -15,10 +15,10 @@ GEM
|
|
15
15
|
cabin (0.9.0)
|
16
16
|
celluloid (0.16.0)
|
17
17
|
timers (~> 4.0.0)
|
18
|
-
clamp (1.1.
|
18
|
+
clamp (1.1.2)
|
19
19
|
coderay (1.1.0)
|
20
20
|
diff-lcs (1.2.5)
|
21
|
-
dotenv (2.
|
21
|
+
dotenv (2.2.0)
|
22
22
|
ffi (1.9.6)
|
23
23
|
ffi (1.9.6-java)
|
24
24
|
flores (0.0.3)
|
data/Makefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
GEMSPEC=$(shell ls *.gemspec)
|
2
|
-
VERSION=$(shell awk -F\" '/
|
2
|
+
VERSION=$(shell awk -F\" '/VERSION =/ { print $$2 }' lib/pleaserun/version.rb)
|
3
3
|
NAME=$(shell awk -F\" '/spec.name/ { print $$2 }' $(GEMSPEC))
|
4
4
|
GEM=$(NAME)-$(VERSION).gem
|
5
5
|
|
data/lib/pleaserun/cli.rb
CHANGED
@@ -4,6 +4,7 @@ require "clamp"
|
|
4
4
|
require "cabin"
|
5
5
|
require "stud/temporary"
|
6
6
|
|
7
|
+
require "pleaserun/version"
|
7
8
|
require "pleaserun/platform/base"
|
8
9
|
require "pleaserun/installer"
|
9
10
|
require "pleaserun/errors"
|
@@ -63,7 +64,7 @@ class PleaseRun::CLI < Clamp::Command # rubocop:disable ClassLength
|
|
63
64
|
|
64
65
|
def help # rubocop:disable MethodLength
|
65
66
|
return <<-HELP
|
66
|
-
Welcome to pleaserun!
|
67
|
+
Welcome to pleaserun version #{PleaseRun::VERSION}!
|
67
68
|
|
68
69
|
This program aims to help you generate 'init' scripts/configs for various
|
69
70
|
platforms. The simplest example takes only the command you wish to run.
|
@@ -103,6 +104,16 @@ are made. If it fails, nagios will not start. Yay!
|
|
103
104
|
# rubocop:enable MethodLength
|
104
105
|
end
|
105
106
|
|
107
|
+
def run(args)
|
108
|
+
# Short circuit for a `fpm --version` or `fpm -v` short invocation that
|
109
|
+
# is the user asking us for the version of fpm.
|
110
|
+
if args == [ "-v" ] || args == [ "--version" ]
|
111
|
+
puts PleaseRun::VERSION
|
112
|
+
return 0
|
113
|
+
end
|
114
|
+
super
|
115
|
+
end
|
116
|
+
|
106
117
|
def execute
|
107
118
|
setup_logger
|
108
119
|
setup_defaults
|
data/pleaserun.gemspec
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "lib/pleaserun/version")
|
1
2
|
Gem::Specification.new do |spec|
|
2
3
|
files = File.read(__FILE__)[/^__END__$.*/m].split("\n")[1..-1]
|
3
4
|
|
4
5
|
spec.name = "pleaserun"
|
5
|
-
spec.version =
|
6
|
+
spec.version = PleaseRun::VERSION
|
6
7
|
spec.summary = "pleaserun"
|
7
8
|
spec.description = "pleaserun"
|
8
9
|
spec.license = "Apache 2.0"
|
@@ -53,6 +54,7 @@ lib/pleaserun/platform/systemd.rb
|
|
53
54
|
lib/pleaserun/platform/sysv.rb
|
54
55
|
lib/pleaserun/platform/upstart.rb
|
55
56
|
lib/pleaserun/user/base.rb
|
57
|
+
lib/pleaserun/version.rb
|
56
58
|
pleaserun.gemspec
|
57
59
|
spec/pleaserun/cli_spec.rb
|
58
60
|
spec/pleaserun/configurable_spec.rb
|
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.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cabin
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/pleaserun/platform/sysv.rb
|
130
130
|
- lib/pleaserun/platform/upstart.rb
|
131
131
|
- lib/pleaserun/user/base.rb
|
132
|
+
- lib/pleaserun/version.rb
|
132
133
|
- pleaserun.gemspec
|
133
134
|
- spec/pleaserun/cli_spec.rb
|
134
135
|
- spec/pleaserun/configurable_spec.rb
|