mmode 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mmode/cli.rb +2 -2
- data/lib/mmode/version.rb +1 -1
- metadata +51 -31
data/lib/mmode/cli.rb
CHANGED
@@ -5,12 +5,12 @@ module Mmode
|
|
5
5
|
|
6
6
|
desc 'enable [USER]', 'Enable maintenance mode for given user'
|
7
7
|
def enable(user)
|
8
|
-
`ssh scrcpt2.nine.ch 'touch /home/usr/screenconcept/maintenance.txt
|
8
|
+
`ssh scrcpt2.nine.ch 'touch /home/usr/screenconcept/maintenance.txt; sudo monit unmonitor -g thin_#{user}'`
|
9
9
|
end
|
10
10
|
|
11
11
|
desc 'disable [USER]', 'Disable maintenance mode for given user'
|
12
12
|
def disable(user)
|
13
|
-
`ssh scrcpt2.nine.ch 'rm /home/usr/screenconcept/maintenance.txt
|
13
|
+
`ssh scrcpt2.nine.ch 'rm /home/usr/screenconcept/maintenance.txt; sudo monit monitor -g thin_#{user}'`
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
data/lib/mmode/version.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mmode
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Felipe Kaufmann
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-11-24 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: thor
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
22
32
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
on scrcpt2
|
27
|
-
email:
|
33
|
+
version_requirements: *id001
|
34
|
+
description: this gem allows to enable/disable maintenance mode for each customer on scrcpt2
|
35
|
+
email:
|
28
36
|
- felipekaufmann@gmail.com
|
29
|
-
executables:
|
37
|
+
executables:
|
30
38
|
- mmode
|
31
39
|
extensions: []
|
40
|
+
|
32
41
|
extra_rdoc_files: []
|
33
|
-
|
42
|
+
|
43
|
+
files:
|
34
44
|
- .gitignore
|
35
45
|
- Gemfile
|
36
46
|
- Rakefile
|
@@ -39,28 +49,38 @@ files:
|
|
39
49
|
- lib/mmode/cli.rb
|
40
50
|
- lib/mmode/version.rb
|
41
51
|
- mmode.gemspec
|
42
|
-
homepage:
|
52
|
+
homepage: ""
|
43
53
|
licenses: []
|
54
|
+
|
44
55
|
post_install_message:
|
45
56
|
rdoc_options: []
|
46
|
-
|
57
|
+
|
58
|
+
require_paths:
|
47
59
|
- lib
|
48
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
61
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
62
|
+
requirements:
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
hash: 3
|
66
|
+
segments:
|
67
|
+
- 0
|
68
|
+
version: "0"
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
70
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
version: "0"
|
60
78
|
requirements: []
|
79
|
+
|
61
80
|
rubyforge_project: mmode
|
62
81
|
rubygems_version: 1.8.10
|
63
82
|
signing_key:
|
64
83
|
specification_version: 3
|
65
84
|
summary: a gem to handle maintenance mode on scrcpt2
|
66
85
|
test_files: []
|
86
|
+
|