awsborn 0.9.8 → 0.9.9

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 +1 -1
  3. data/lib/awsborn/rake.rb +12 -12
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.8
1
+ 0.9.9
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{awsborn}
8
- s.version = "0.9.8"
8
+ s.version = "0.9.9"
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"]
@@ -75,7 +75,7 @@ module Awsborn
75
75
  Dir["**/*.rb"].each do |recipe|
76
76
  RakeFileUtils.verbose(false) do
77
77
  sh %{ruby -c #{recipe} > /dev/null} do |ok, res|
78
- raise "Syntax error in #{recipe}" if not ok
78
+ raise "Syntax error in #{recipe}" if not ok
79
79
  end
80
80
  end
81
81
  end
@@ -92,7 +92,7 @@ module Awsborn
92
92
  # Disable annoying "Waiting for console output.."
93
93
  Awsborn.verbose = false
94
94
 
95
- cluster_name = cluster_param
95
+ cluster_name = cluster_param(args)
96
96
  if cluster_name
97
97
  clusters = Awsborn::ServerCluster.clusters.select {|cluster| cluster.name == cluster_name}
98
98
  else
@@ -140,12 +140,12 @@ module Awsborn
140
140
  def create_cookbook(dir) #:nodoc:
141
141
  raise "Must provide a cookbook=" unless ENV["cookbook"]
142
142
  puts "** Creating cookbook #{ENV["cookbook"]}"
143
- sh "mkdir -p #{File.join(dir, ENV["cookbook"], "attributes")}"
144
- sh "mkdir -p #{File.join(dir, ENV["cookbook"], "recipes")}"
145
- sh "mkdir -p #{File.join(dir, ENV["cookbook"], "definitions")}"
146
- sh "mkdir -p #{File.join(dir, ENV["cookbook"], "libraries")}"
147
- sh "mkdir -p #{File.join(dir, ENV["cookbook"], "files", "default")}"
148
- sh "mkdir -p #{File.join(dir, ENV["cookbook"], "templates", "default")}"
143
+ sh "mkdir -p #{File.join(dir, ENV["cookbook"], "attributes")}"
144
+ sh "mkdir -p #{File.join(dir, ENV["cookbook"], "recipes")}"
145
+ sh "mkdir -p #{File.join(dir, ENV["cookbook"], "definitions")}"
146
+ sh "mkdir -p #{File.join(dir, ENV["cookbook"], "libraries")}"
147
+ sh "mkdir -p #{File.join(dir, ENV["cookbook"], "files", "default")}"
148
+ sh "mkdir -p #{File.join(dir, ENV["cookbook"], "templates", "default")}"
149
149
 
150
150
  unless File.exists?(File.join(dir, ENV["cookbook"], "recipes", "default.rb"))
151
151
  open(File.join(dir, ENV["cookbook"], "recipes", "default.rb"), "w") do |file|
@@ -160,7 +160,7 @@ EOH
160
160
  end
161
161
 
162
162
  def get_hosts (args) #:nodoc:
163
- host_param && host_param.split(',')
163
+ host_param(args) && host_param(args).split(',')
164
164
  end
165
165
 
166
166
  def framed (message) #:nodoc:
@@ -168,15 +168,15 @@ EOH
168
168
  end
169
169
 
170
170
  def cluster (args) #:nodoc:
171
- name = cluster_param || 'cluster1'
171
+ name = cluster_param(args) || '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
175
+ def host_param(args)
176
176
  args[:host] || args[:server] || ENV['host'] || ENV['server']
177
177
  end
178
178
 
179
- def cluster_param
179
+ def cluster_param(args)
180
180
  args[:c] || args[:cluster] || ENV['c'] || ENV['cluster']
181
181
  end
182
182
 
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: 43
4
+ hash: 41
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 8
10
- version: 0.9.8
9
+ - 9
10
+ version: 0.9.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Vrensk