HeSYINUvSBZfxqA-capistrano 2.5.21 → 2.5.22

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.21
1
+ 2.5.22
@@ -18,13 +18,13 @@ module Capistrano
18
18
  @callbacks = {}
19
19
  end
20
20
 
21
- def invoke_task_directly_with_callbacks(task) #:nodoc:
21
+ def invoke_task_directly_with_callbacks(task, meh=nil) #:nodoc:
22
22
  before = find_hook(task, :before)
23
23
  execute_task(before) if before
24
24
 
25
25
  trigger :before, task
26
26
 
27
- result = invoke_task_directly_without_callbacks(task)
27
+ result = invoke_task_directly_without_callbacks(task, meh)
28
28
 
29
29
  trigger :after, task
30
30
 
@@ -145,4 +145,4 @@ module Capistrano
145
145
 
146
146
  end
147
147
  end
148
- end
148
+ end
@@ -1,5 +1,20 @@
1
1
  require 'capistrano/errors'
2
2
 
3
+ class Defer
4
+ def initialize(old_self, context)
5
+ @old_self = old_self
6
+ @context = context
7
+ end
8
+
9
+ def context
10
+ @context
11
+ end
12
+
13
+ def method_missing(method, *args, &block)
14
+ @old_self.send method, *args, &block
15
+ end
16
+ end
17
+
3
18
  module Capistrano
4
19
  class Configuration
5
20
  module Execution
@@ -83,10 +98,10 @@ module Capistrano
83
98
 
84
99
  # Executes the task with the given name, without invoking any associated
85
100
  # callbacks.
86
- def execute_task(task)
101
+ def execute_task(task, path)
87
102
  logger.debug "executing `#{task.fully_qualified_name}'"
88
103
  push_task_call_frame(task)
89
- invoke_task_directly(task)
104
+ invoke_task_directly(task, path)
90
105
  ensure
91
106
  pop_task_call_frame
92
107
  end
@@ -95,10 +110,10 @@ module Capistrano
95
110
  # execute it. If no such task exists, a Capistrano::NoSuchTaskError will
96
111
  # be raised.
97
112
  def find_and_execute_task(path, hooks={})
98
- task = find_task(path) or raise NoSuchTaskError, "the task `#{path}' does not exist"
113
+ task = find_task(path) || find_task("default") or raise NoSuchTaskError, "the task `#{path}' does not exist"
99
114
 
100
115
  trigger(hooks[:before], task) if hooks[:before]
101
- result = execute_task(task)
116
+ result = execute_task(task, path)
102
117
  trigger(hooks[:after], task) if hooks[:after]
103
118
 
104
119
  result
@@ -135,9 +150,10 @@ module Capistrano
135
150
  end
136
151
 
137
152
  # Invokes the task's body directly, without setting up the call frame.
138
- def invoke_task_directly(task)
139
- task.namespace.instance_eval(&task.body)
153
+ def invoke_task_directly(task, path)
154
+ defer = Defer.new(task.namespace, { :task => task, :path => path })
155
+ defer.instance_eval(&task.body)
140
156
  end
141
157
  end
142
158
  end
143
- end
159
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: HeSYINUvSBZfxqA-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 5
9
- - 21
10
- version: 2.5.21
9
+ - 22
10
+ version: 2.5.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jamis Buck
@@ -20,7 +20,9 @@ date: 2011-03-22 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ name: highline
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
24
26
  none: false
25
27
  requirements:
26
28
  - - ">="
@@ -29,12 +31,12 @@ dependencies:
29
31
  segments:
30
32
  - 0
31
33
  version: "0"
32
- prerelease: false
33
34
  type: :runtime
34
- requirement: *id001
35
- name: highline
35
+ version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ name: net-ssh
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
38
40
  none: false
39
41
  requirements:
40
42
  - - ">="
@@ -45,12 +47,12 @@ dependencies:
45
47
  - 0
46
48
  - 14
47
49
  version: 2.0.14
48
- prerelease: false
49
50
  type: :runtime
50
- requirement: *id002
51
- name: net-ssh
51
+ version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
+ name: net-sftp
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
54
56
  none: false
55
57
  requirements:
56
58
  - - ">="
@@ -61,12 +63,12 @@ dependencies:
61
63
  - 0
62
64
  - 0
63
65
  version: 2.0.0
64
- prerelease: false
65
66
  type: :runtime
66
- requirement: *id003
67
- name: net-sftp
67
+ version_requirements: *id003
68
68
  - !ruby/object:Gem::Dependency
69
- version_requirements: &id004 !ruby/object:Gem::Requirement
69
+ name: net-scp
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
70
72
  none: false
71
73
  requirements:
72
74
  - - ">="
@@ -77,12 +79,12 @@ dependencies:
77
79
  - 0
78
80
  - 0
79
81
  version: 1.0.0
80
- prerelease: false
81
82
  type: :runtime
82
- requirement: *id004
83
- name: net-scp
83
+ version_requirements: *id004
84
84
  - !ruby/object:Gem::Dependency
85
- version_requirements: &id005 !ruby/object:Gem::Requirement
85
+ name: net-ssh-gateway
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
86
88
  none: false
87
89
  requirements:
88
90
  - - ">="
@@ -93,12 +95,12 @@ dependencies:
93
95
  - 0
94
96
  - 0
95
97
  version: 1.0.0
96
- prerelease: false
97
98
  type: :runtime
98
- requirement: *id005
99
- name: net-ssh-gateway
99
+ version_requirements: *id005
100
100
  - !ruby/object:Gem::Dependency
101
- version_requirements: &id006 !ruby/object:Gem::Requirement
101
+ name: mocha
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
102
104
  none: false
103
105
  requirements:
104
106
  - - ">="
@@ -107,10 +109,8 @@ dependencies:
107
109
  segments:
108
110
  - 0
109
111
  version: "0"
110
- prerelease: false
111
112
  type: :development
112
- requirement: *id006
113
- name: mocha
113
+ version_requirements: *id006
114
114
  description: Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.
115
115
  email:
116
116
  - jamis@jamisbuck.org
@@ -126,7 +126,6 @@ files:
126
126
  - .gitignore
127
127
  - CHANGELOG
128
128
  - Gemfile
129
- - Gemfile.lock
130
129
  - HeSYINUvSBZfxqA-capistrano.gemspec
131
130
  - README.mdown
132
131
  - Rakefile
@@ -191,7 +190,6 @@ files:
191
190
  - lib/capistrano/task_definition.rb
192
191
  - lib/capistrano/transfer.rb
193
192
  - lib/capistrano/version.rb
194
- - rvmrc.sample
195
193
  - test/cli/execute_test.rb
196
194
  - test/cli/help_test.rb
197
195
  - test/cli/options_test.rb
@@ -263,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
261
  requirements: []
264
262
 
265
263
  rubyforge_project:
266
- rubygems_version: 1.6.2
264
+ rubygems_version: 1.5.3
267
265
  signing_key:
268
266
  specification_version: 3
269
267
  summary: Capistrano - Welcome to easy deployment with Ruby over SSH
data/Gemfile.lock DELETED
@@ -1,31 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- HeSYINUvSBZfxqA-capistrano (2.5.21)
5
- highline
6
- net-scp (>= 1.0.0)
7
- net-sftp (>= 2.0.0)
8
- net-ssh (>= 2.0.14)
9
- net-ssh-gateway (>= 1.0.0)
10
-
11
- GEM
12
- remote: http://rubygems.org/
13
- specs:
14
- highline (1.6.2)
15
- metaclass (0.0.1)
16
- mocha (0.10.0)
17
- metaclass (~> 0.0.1)
18
- net-scp (1.0.4)
19
- net-ssh (>= 1.99.1)
20
- net-sftp (2.0.5)
21
- net-ssh (>= 2.0.9)
22
- net-ssh (2.2.1)
23
- net-ssh-gateway (1.1.0)
24
- net-ssh (>= 1.99.1)
25
-
26
- PLATFORMS
27
- ruby
28
-
29
- DEPENDENCIES
30
- HeSYINUvSBZfxqA-capistrano!
31
- mocha
data/rvmrc.sample DELETED
@@ -1 +0,0 @@
1
- rvm use 1.8.7@capistrano-devel --create