fezzik 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -204,6 +204,15 @@ run.
204
204
 
205
205
  Fezzik exposes some functions that can be useful when running remote tasks.
206
206
 
207
+ ### Override hosts from command line
208
+
209
+ ```
210
+ $ domain="example1.com,example2.com" fez prod deploy
211
+ ```
212
+
213
+ Set the "domain" environment variable to override the domains set in your destination block. Useful for running
214
+ one-off tasks against a subset of your hosts.
215
+
207
216
  ### Capture or redirect output
208
217
 
209
218
  ```ruby
data/bin/fez CHANGED
@@ -54,6 +54,7 @@ def run_fezzik_tasks
54
54
  Fezzik.init
55
55
  Rake.application.init
56
56
  Rake.application.load_rakefile
57
+ set :domain, ENV["domain"].split(",") if ENV["domain"]
57
58
  begin
58
59
  host_list = Array(domain).join("\n ")
59
60
  puts "Targeting hosts:"
@@ -11,7 +11,6 @@ module Fezzik
11
11
  end
12
12
  end
13
13
 
14
- # TODO: add domain override (through environment variable?)
15
14
  def self.destination(name, &block)
16
15
  block.call if name == @target_destination
17
16
  end
@@ -1,3 +1,3 @@
1
1
  module Fezzik
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fezzik
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-30 00:00:00.000000000Z
13
+ date: 2012-10-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
- requirement: &70336101632020 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: 0.8.7
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70336101632020
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: 0.8.7
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: rake-remote_task
28
- requirement: &70336101631220 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ~>
@@ -33,10 +38,15 @@ dependencies:
33
38
  version: 2.0.2
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *70336101631220
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.2
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: colorize
39
- requirement: &70336101630760 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,7 +54,12 @@ dependencies:
44
54
  version: 0.5.8
45
55
  type: :runtime
46
56
  prerelease: false
47
- version_requirements: *70336101630760
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: 0.5.8
48
63
  description: A light deployment system that gets out of your way
49
64
  email: dmacdougall@gmail.com
50
65
  executables:
@@ -91,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
106
  version: '0'
92
107
  requirements: []
93
108
  rubyforge_project: fezzik
94
- rubygems_version: 1.8.10
109
+ rubygems_version: 1.8.23
95
110
  signing_key:
96
111
  specification_version: 2
97
112
  summary: Fezzik is a small wrapper around rake/remote_task. It simplifies running