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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b90d80370ce75037f0b8993e9709b583a0d7d525
4
- data.tar.gz: 933f62bf2eadd850c83b919611eec066e632f344
3
+ metadata.gz: 25242e746da3686b044a4fd8ccec447ac091d59e
4
+ data.tar.gz: 3456cf99bf6fc61f4e3f7ebc7124512a2312c34b
5
5
  SHA512:
6
- metadata.gz: d953665121a757a050891aa28dc15c4693f353bd9e270b8f3ae6c166d23092cb636bc6085e61e82f3a16e6e04c883b6f93ebe95884933d121b4560bc942f01eb
7
- data.tar.gz: 728e4ed72952845780c7e379b28a0c90b91f5f4f6d1d13c48c3573ac2330084fe609b24ca5a2683c21de1b88302c217cc6548b4fc011bbede1041df45722225c
6
+ metadata.gz: 870688510a18a3706d4e503f71570c8439c4be57efd85a73dfa6ab3b2cd41321adba2dc80f75cd692b72b9033b707421bebc277a2e44fe8a1475ad117a00991f
7
+ data.tar.gz: 6f4333f739bbf498a5cf0da27c57037969a1eb548fc36e8d9eef4ca2787de0bff2302b22834afe6d974de90136c67c1990cbfc79aead011fdd0222d95f8694c5
data/README.md CHANGED
@@ -132,7 +132,7 @@ containers up and running:
132
132
 
133
133
  ```bash
134
134
  spurious init
135
- spurious up
135
+ spurious up|boot|start
136
136
  ```
137
137
 
138
138
  You should now have 6 containers running which you can check with:
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
- %w(init start update stop delete).each do |meth|
22
- desc meth, "#{meth} for the spurious containers"
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.to_sym
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'
@@ -1,3 +1,3 @@
1
1
  module Spurious
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-07-23 00:00:00.000000000 Z
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.2.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