awsborn 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/awsborn.gemspec +4 -3
  3. data/lib/awsborn/rake.rb +11 -3
  4. metadata +6 -6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.7
1
+ 0.9.8
data/awsborn.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{awsborn}
8
- s.version = "0.9.7"
8
+ s.version = "0.9.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Vrensk", "Jean-Louis Giordano"]
12
- s.date = %q{2012-05-03}
12
+ s.date = %q{2012-05-09}
13
13
  s.description = %q{Awsborn lets you define and launch a server cluster on Amazon EC2.}
14
14
  s.email = %q{david@icehouse.se}
15
15
  s.extra_rdoc_files = [
@@ -58,7 +58,7 @@ Gem::Specification.new do |s|
58
58
  s.homepage = %q{http://github.com/icehouse/awsborn}
59
59
  s.rdoc_options = ["--charset=UTF-8"]
60
60
  s.require_paths = ["lib"]
61
- s.rubygems_version = %q{1.6.2}
61
+ s.rubygems_version = %q{1.3.7}
62
62
  s.summary = %q{Awsborn defines servers as instances with a certain disk volume, which makes it easy to restart missing servers.}
63
63
  s.test_files = [
64
64
  "spec/aws_constants_spec.rb",
@@ -73,6 +73,7 @@ Gem::Specification.new do |s|
73
73
  ]
74
74
 
75
75
  if s.respond_to? :specification_version then
76
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
76
77
  s.specification_version = 3
77
78
 
78
79
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
data/lib/awsborn/rake.rb CHANGED
@@ -92,7 +92,7 @@ module Awsborn
92
92
  # Disable annoying "Waiting for console output.."
93
93
  Awsborn.verbose = false
94
94
 
95
- cluster_name = args[:c] || args[:cluster]
95
+ cluster_name = cluster_param
96
96
  if cluster_name
97
97
  clusters = Awsborn::ServerCluster.clusters.select {|cluster| cluster.name == cluster_name}
98
98
  else
@@ -160,7 +160,7 @@ EOH
160
160
  end
161
161
 
162
162
  def get_hosts (args) #:nodoc:
163
- args[:host] && args[:host].split(',') || args[:server] && args[:server].split(',')
163
+ host_param && host_param.split(',')
164
164
  end
165
165
 
166
166
  def framed (message) #:nodoc:
@@ -168,10 +168,18 @@ EOH
168
168
  end
169
169
 
170
170
  def cluster (args) #:nodoc:
171
- name = args[:c] || args[:cluster] || 'cluster1'
171
+ name = cluster_param || 'cluster1'
172
172
  Awsborn::ServerCluster.clusters.detect { |c| c.name == name } || raise("Could not find cluster named '#{name}'")
173
173
  end
174
174
 
175
+ def host_param
176
+ args[:host] || args[:server] || ENV['host'] || ENV['server']
177
+ end
178
+
179
+ def cluster_param
180
+ args[:c] || args[:cluster] || ENV['c'] || ENV['cluster']
181
+ end
182
+
175
183
  end
176
184
  end
177
185
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsborn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
5
- prerelease:
4
+ hash: 43
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 7
10
- version: 0.9.7
9
+ - 8
10
+ version: 0.9.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Vrensk
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-05-03 00:00:00 +02:00
19
+ date: 2012-05-09 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  requirements: []
175
175
 
176
176
  rubyforge_project:
177
- rubygems_version: 1.6.2
177
+ rubygems_version: 1.3.7
178
178
  signing_key:
179
179
  specification_version: 3
180
180
  summary: Awsborn defines servers as instances with a certain disk volume, which makes it easy to restart missing servers.