sumodev 0.3.7 → 0.3.8

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: 589f2458ef216ce7be4f8b27f14182715f3969a7
4
- data.tar.gz: 0c66bbb6eff80540c335e965372590b4f164a838
3
+ metadata.gz: da89cd17ff72f8b7f1daa613d81c612c8f2249ca
4
+ data.tar.gz: 94265225f284d9a54d56276df1a9f4f68f7642b9
5
5
  SHA512:
6
- metadata.gz: 36d7a8577245ae81f74c7ffa89707e35255bebfdefdd1e63248951c31fe3aa0ebe501727c879f19ab56b6fb9989722dd81d44b4e11e19fbfb85d626b3fef7f8f
7
- data.tar.gz: b41c47d94534733c72bed364fa0374b13839de2d3777fb0b63aab7ae47445b65448b233273804edbb9e02b14f6b997e79a4ca8eba591009441af0500db92a589
6
+ metadata.gz: 1f4c2e71330c5f6d9859d9314446d2aff8c1b6a31411b5f0029cf21aa13de26176fb77a5499eb7554d483ef8f77b6adfc6da5569a8698baa7f40d331813376ac
7
+ data.tar.gz: d2cff30e206775c9959f6b004d8d23a5522a7e7f5de601674484b00c3d9c1ff6100dd325ff45bee742e8c012484c19742809df29dd0e90bc13e3844d47a09afb
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GEM
9
9
  net-scp (1.1.2)
10
10
  net-ssh (>= 2.6.5)
11
11
  net-ssh (2.6.8)
12
- thor (0.18.1)
12
+ thor (0.19.1)
13
13
 
14
14
  PLATFORMS
15
15
  ruby
@@ -86,12 +86,13 @@ port 53
86
86
  %x(sudo mv /tmp/vagrant-resolver /etc/resolver/vagrant)
87
87
  end
88
88
 
89
- desc 'your_command', "Runs your command on the correct box"
90
- def your_command(*args)
91
- say "Use sumo box <command> you bloody idiot, eg: sumo box ssh"
92
- end
93
-
94
- def method_missing(*args)
95
- run_vagrant_command(args.join(" "))
89
+ # Vagrant commands
90
+ %w(halt provision resume reload ssh status suspend).each do |method|
91
+ class_eval <<-VAGRANT_METHOD
92
+ desc '#{method}', 'Runs the #{method} vagrant command'
93
+ def #{method}(*args)
94
+ run_vagrant_command(args.join(' '))
95
+ end
96
+ VAGRANT_METHOD
96
97
  end
97
98
  end
@@ -47,7 +47,7 @@ class Sumodev::Commands::Push < Thor::Group
47
47
  end
48
48
 
49
49
  def host
50
- server[/^(?:.+@)?(.*)(?::.+)?/, 1]
50
+ server[/^(?:.+@)?(.+?)(?::.+)?$/, 1]
51
51
  end
52
52
 
53
53
  def pass
@@ -1,3 +1,3 @@
1
1
  module Sumodev
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumodev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan De Poorter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-25 00:00:00.000000000 Z
11
+ date: 2014-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport