nuex-vlad 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rake_remote_task.rb +26 -0
  2. metadata +3 -2
@@ -7,6 +7,32 @@ $TESTING ||= false
7
7
  $TRACE = Rake.application.options.trace
8
8
  $-w = true if $TRACE # asshat, don't mess with my warn.
9
9
 
10
+ module Rake
11
+ module TaskManager
12
+ ##
13
+ # This gives us access to the tasks already defined in rake.
14
+ def all_tasks
15
+ @tasks
16
+ end
17
+ end
18
+
19
+ ##
20
+ # Hooks into rake and allows us to clear out a task by name or
21
+ # regexp. Use this if you want to completely override a task instead
22
+ # of extend it.
23
+ def self.clear_tasks(*tasks)
24
+ tasks.flatten.each do |name|
25
+ case name
26
+ when Regexp then
27
+ Rake.application.all_tasks.delete_if { |k,_| k =~ name }
28
+ else
29
+ Rake.application.all_tasks.delete(name)
30
+ end
31
+ end
32
+ end
33
+ end
34
+
35
+
10
36
  ##
11
37
  # Rake::RemoteTask is a subclass of Rake::Task that adds
12
38
  # remote_actions that execute in parallel on multiple hosts via ssh.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuex-vlad
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -105,6 +105,7 @@ files:
105
105
  - vladdemo.sh
106
106
  has_rdoc: false
107
107
  homepage: http://rubyhitsquad.com/
108
+ licenses:
108
109
  post_install_message:
109
110
  rdoc_options:
110
111
  - --main
@@ -126,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  requirements: []
127
128
 
128
129
  rubyforge_project: hitsquad
129
- rubygems_version: 1.2.0
130
+ rubygems_version: 1.3.5
130
131
  signing_key:
131
132
  specification_version: 3
132
133
  summary: Vlad the Deployer is pragmatic application deployment automation, without mercy