foreman-monit 1.0.3 → 1.0.4
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/.ruby-version +1 -1
- data/README.md +16 -1
- data/foreman-monit.gemspec +2 -2
- data/lib/foreman-monit/version.rb +1 -1
- data/spec/lib/foreman-monit/exporter_spec.rb +2 -2
- data/spec/spec_helper.rb +0 -2
- data/spec/support/custom_expectations/write_expectation.rb +7 -2
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4376f857ff2ea0ceb2ede3075eee8d3a1bf24bd
|
|
4
|
+
data.tar.gz: 712c97346d80fe65c90a97cf3f338ecb2fc1576c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4be9b6532c11438104198ba43038cfd8ea56e85bfd5c90d4fb859ada30e060199563e7bf70ac9c4f982883b2a470c951be5829f0c0902a8ddc40fc7124954e1f
|
|
7
|
+
data.tar.gz: b6e41c8a5efe09b874737f8fe695c8cc9bd5e5138a955a11aaee3548f2923b7f2946ea93a802d5d26016a9941c84daa27fc8ef2ed4f334c4349810cbabecc396
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.1.
|
|
1
|
+
ruby-2.1.5
|
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Add this line to your application's Gemfile:
|
|
|
8
8
|
|
|
9
9
|
gem 'foreman-monit', github: 'capita/foreman-monit'
|
|
10
10
|
or
|
|
11
|
-
gem 'foreman-monit, '~> v1.0.
|
|
11
|
+
gem 'foreman-monit, '~> v1.0.4'
|
|
12
12
|
|
|
13
13
|
And then execute:
|
|
14
14
|
|
|
@@ -57,6 +57,21 @@ which will typically be somewhere in your 'cap:restart' definition in your Capfi
|
|
|
57
57
|
monit reload
|
|
58
58
|
monit start -g <app>
|
|
59
59
|
|
|
60
|
+
## Exporter options
|
|
61
|
+
|
|
62
|
+
Required:
|
|
63
|
+
|
|
64
|
+
- `--app`: Name of the app in your `Procfile` (e.g. `shop`)
|
|
65
|
+
- `--env`: Rails environment to pass as `RAILS_ENV` (e.g. `production`)
|
|
66
|
+
- `--user`: Username that will run the process
|
|
67
|
+
|
|
68
|
+
Optional:
|
|
69
|
+
|
|
70
|
+
- `--chruby`: Calls `chruby` to switch to the given ruby version
|
|
71
|
+
- `--procfile`: Location of the `Procfile`
|
|
72
|
+
- `--target`: Directory to put the config file, defaults to `/tmp/foreman-monit`
|
|
73
|
+
|
|
74
|
+
|
|
60
75
|
## Contributing
|
|
61
76
|
|
|
62
77
|
1. Fork it
|
data/foreman-monit.gemspec
CHANGED
|
@@ -6,8 +6,8 @@ require 'foreman-monit/version'
|
|
|
6
6
|
Gem::Specification.new do |gem|
|
|
7
7
|
gem.name = 'foreman-monit'
|
|
8
8
|
gem.version = Foreman::Monit::VERSION
|
|
9
|
-
gem.authors = ['Sebastian Georgi']
|
|
10
|
-
gem.email = %w(sgeorgi@capita.de)
|
|
9
|
+
gem.authors = ['Sebastian Georgi', 'Christian Sage']
|
|
10
|
+
gem.email = %w(sgeorgi@sgeorgi.de csage@capita.de)
|
|
11
11
|
gem.description = %q{Outputs bash-wrapped launchers and control files for monit}
|
|
12
12
|
gem.summary = %q{...}
|
|
13
13
|
gem.homepage = ''
|
|
@@ -17,7 +17,7 @@ describe ForemanMonit::Exporter do
|
|
|
17
17
|
before(:each) { exporter.run! }
|
|
18
18
|
|
|
19
19
|
it 'creates the target directory' do
|
|
20
|
-
expect(Dir.exists?('../../tmp')).to
|
|
20
|
+
expect(Dir.exists?('../../tmp')).to eq(true)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
it 'exports the control file for Procfile#web' do
|
|
@@ -31,7 +31,7 @@ describe ForemanMonit::Exporter do
|
|
|
31
31
|
|
|
32
32
|
describe '#info' do
|
|
33
33
|
it 'shows the Procfiles entries' do
|
|
34
|
-
expect
|
|
34
|
+
expect{ exporter.info }.to write('Foreman').to(:output)
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -8,9 +8,7 @@ require 'foreman-monit'
|
|
|
8
8
|
require 'support/custom_expectations/write_expectation'
|
|
9
9
|
|
|
10
10
|
RSpec.configure do |config|
|
|
11
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
|
12
11
|
config.run_all_when_everything_filtered = true
|
|
13
|
-
config.filter_run :focus
|
|
14
12
|
|
|
15
13
|
# Run specs in random order to surface order dependencies. If you find an
|
|
16
14
|
# order dependency and want to debug it, you can fix the order by providing
|
|
@@ -17,14 +17,19 @@ RSpec::Matchers.define :write do |message|
|
|
|
17
17
|
"write \"#{message}\" #{io_name}"
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
failure_message do
|
|
21
21
|
"expected to #{description}"
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
failure_message_when_negated do
|
|
25
25
|
"expected to not #{description}"
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
# To prevent this from being confused with a regular matcher.
|
|
29
|
+
def supports_block_expectations?
|
|
30
|
+
true
|
|
31
|
+
end
|
|
32
|
+
|
|
28
33
|
# Fake STDERR and return a string written to it.
|
|
29
34
|
def fake_stderr
|
|
30
35
|
original_stderr = $stderr
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman-monit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sebastian Georgi
|
|
8
|
+
- Christian Sage
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
12
|
+
date: 2014-12-03 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: foreman
|
|
@@ -68,7 +69,8 @@ dependencies:
|
|
|
68
69
|
version: '0'
|
|
69
70
|
description: Outputs bash-wrapped launchers and control files for monit
|
|
70
71
|
email:
|
|
71
|
-
- sgeorgi@
|
|
72
|
+
- sgeorgi@sgeorgi.de
|
|
73
|
+
- csage@capita.de
|
|
72
74
|
executables:
|
|
73
75
|
- foreman-monit
|
|
74
76
|
extensions: []
|
|
@@ -111,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
111
113
|
version: '0'
|
|
112
114
|
requirements: []
|
|
113
115
|
rubyforge_project:
|
|
114
|
-
rubygems_version: 2.
|
|
116
|
+
rubygems_version: 2.4.4
|
|
115
117
|
signing_key:
|
|
116
118
|
specification_version: 4
|
|
117
119
|
summary: "..."
|