spurious 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/spurious/app.rb +29 -5
- data/lib/spurious/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25242e746da3686b044a4fd8ccec447ac091d59e
|
4
|
+
data.tar.gz: 3456cf99bf6fc61f4e3f7ebc7124512a2312c34b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 870688510a18a3706d4e503f71570c8439c4be57efd85a73dfa6ab3b2cd41321adba2dc80f75cd692b72b9033b707421bebc277a2e44fe8a1475ad117a00991f
|
7
|
+
data.tar.gz: 6f4333f739bbf498a5cf0da27c57037969a1eb548fc36e8d9eef4ca2787de0bff2302b22834afe6d974de90136c67c1990cbfc79aead011fdd0222d95f8694c5
|
data/README.md
CHANGED
data/lib/spurious/app.rb
CHANGED
@@ -16,17 +16,41 @@ module Spurious
|
|
16
16
|
super
|
17
17
|
end
|
18
18
|
|
19
|
-
|
20
19
|
def self.state_methods
|
21
|
-
|
22
|
-
|
20
|
+
methods = {
|
21
|
+
:init => {
|
22
|
+
:aliases => []
|
23
|
+
},
|
24
|
+
:start => {
|
25
|
+
:aliases => ["up", "boot"]
|
26
|
+
},
|
27
|
+
:update => {
|
28
|
+
:aliases => []
|
29
|
+
},
|
30
|
+
:stop => {
|
31
|
+
:aliases => ["down", "halt"]
|
32
|
+
},
|
33
|
+
:delete => {
|
34
|
+
:aliases => []
|
35
|
+
}
|
36
|
+
}
|
37
|
+
methods.each do |meth, options|
|
38
|
+
desc meth.to_s, "#{meth} the spurious containers"
|
23
39
|
define_method(meth) do
|
24
|
-
event_loop meth
|
40
|
+
event_loop meth
|
41
|
+
end
|
42
|
+
|
43
|
+
unless options[:aliases].empty? then
|
44
|
+
options[:aliases].each do |alias_meth|
|
45
|
+
desc alias_meth, "alias for `spurious #{meth}`"
|
46
|
+
define_method(alias_meth) do
|
47
|
+
event_loop meth
|
48
|
+
end
|
49
|
+
end
|
25
50
|
end
|
26
51
|
end
|
27
52
|
end
|
28
53
|
|
29
|
-
|
30
54
|
state_methods
|
31
55
|
|
32
56
|
method_option :'json', :type => :boolean, :default => false, :desc => 'Prints out ports as a json string'
|
data/lib/spurious/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spurious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Jack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.0.14
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Spurious is a cli tool that interacts with the spurious server
|