do 0.2.0.h → 0.2.0.i

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/do/commands.rb +4 -4
  2. data/lib/do/version.rb +1 -1
  3. metadata +4 -4
data/lib/do/commands.rb CHANGED
@@ -15,8 +15,8 @@ module DO
15
15
 
16
16
  def remotes
17
17
  @_remotes ||= begin
18
- name = ARGV[0]
19
- servers.select { |s| s.name.to_s == name } + servers.select { |s| s.role.to_s == name }
18
+ names = ARGV[0].split('+')
19
+ servers.select { |s| names.include?(s.name.to_s) } | servers.select { |s| names.include?(s.role.to_s) }
20
20
  end
21
21
  end
22
22
  alias :remote :remotes
@@ -107,11 +107,11 @@ module DO
107
107
  set current.name, current
108
108
  set current.role, servers.select { |s| s.role == current.role } if current.role
109
109
  task name do |opts, b|
110
- @_current_server = servers.find { |s| s.name == current.name }
110
+ server_was, @_current_server = @_current_server, servers.find { |s| s.name == current.name }
111
111
  begin
112
112
  b.arity == 1 ? b.call(opts) : b.call
113
113
  ensure
114
- @_current_server = nil
114
+ @_current_server = server_was
115
115
  end
116
116
  end
117
117
  end
data/lib/do/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DO
2
- VERSION = '0.2.0.h' unless defined?(DO::VERSION)
2
+ VERSION = '0.2.0.i' unless defined?(DO::VERSION)
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: do
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
4
+ hash: 50
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
- - h
11
- version: 0.2.0.h
10
+ - i
11
+ version: 0.2.0.i
12
12
  platform: ruby
13
13
  authors:
14
14
  - Davide D'Agostino
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-01-12 00:00:00 +01:00
19
+ date: 2012-01-20 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency