aws-kicker 0.0.2 → 0.0.3
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.
- data/Gemfile +2 -0
- data/bin/{aws-kicker → kicker} +6 -2
- data/lib/kicker/version.rb +1 -1
- data/lib/stack.rb +8 -1
- metadata +4 -5
- data/Gemfile.lock +0 -62
data/Gemfile
CHANGED
data/bin/{aws-kicker → kicker}
RENAMED
@@ -1,11 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require "rubygems"
|
3
|
-
require "bundler/setup"
|
4
2
|
|
5
3
|
require 'optparse'
|
6
4
|
require 'methadone'
|
7
5
|
require 'kicker'
|
8
6
|
require 'stack'
|
7
|
+
require 'pp'
|
9
8
|
|
10
9
|
class App
|
11
10
|
include Methadone::Main
|
@@ -43,6 +42,11 @@ class App
|
|
43
42
|
info { "delete-node passed #{options['delete-node']}" }
|
44
43
|
Stack.delete_node(config, options['delete-node'])
|
45
44
|
end
|
45
|
+
|
46
|
+
if options['validate']
|
47
|
+
info { 'Attemptying to validate the config' }
|
48
|
+
Stack.validate(config)
|
49
|
+
end
|
46
50
|
end
|
47
51
|
|
48
52
|
# supplemental methods here
|
data/lib/kicker/version.rb
CHANGED
data/lib/stack.rb
CHANGED
@@ -70,7 +70,7 @@ module Stack
|
|
70
70
|
|
71
71
|
# pp multipart
|
72
72
|
#
|
73
|
-
puts "Bootstraping new instance - #{fqdn}, in #{config[:availability_zone]}"
|
73
|
+
puts "Bootstraping new instance - #{fqdn}, in #{config[:availability_zone]}, flavor #{config[:node_details][fqdn][:flavor_id]}, image_id #{config[:image_id]}"
|
74
74
|
server = connection.servers.create({
|
75
75
|
:name => fqdn,
|
76
76
|
:hostname => fqdn,
|
@@ -212,4 +212,11 @@ module Stack
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
215
|
+
def Stack.validate(config)
|
216
|
+
# sanity check
|
217
|
+
# check credentials, keys, flavor, image, dns etc
|
218
|
+
connection = Stack.connect(config)
|
219
|
+
pp connection
|
220
|
+
pp connection.images.get(config[:image_id])
|
221
|
+
end
|
215
222
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-kicker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -95,19 +95,18 @@ description: Utility for kicking an application stack into life on Amazon EC2
|
|
95
95
|
email:
|
96
96
|
- simon@mccartney.ie
|
97
97
|
executables:
|
98
|
-
-
|
98
|
+
- kicker
|
99
99
|
extensions: []
|
100
100
|
extra_rdoc_files: []
|
101
101
|
files:
|
102
102
|
- .gitignore
|
103
103
|
- Gemfile
|
104
|
-
- Gemfile.lock
|
105
104
|
- LICENSE.txt
|
106
105
|
- README.md
|
107
106
|
- README.rdoc
|
108
107
|
- Rakefile
|
109
108
|
- aws-kicker.gemspec
|
110
|
-
- bin/
|
109
|
+
- bin/kicker
|
111
110
|
- features/kicker.feature
|
112
111
|
- features/step_definitions/kicker_steps.rb
|
113
112
|
- features/support/env.rb
|
@@ -135,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
134
|
version: '0'
|
136
135
|
requirements: []
|
137
136
|
rubyforge_project:
|
138
|
-
rubygems_version: 1.8.
|
137
|
+
rubygems_version: 1.8.23
|
139
138
|
signing_key:
|
140
139
|
specification_version: 3
|
141
140
|
summary: ! 'Stacks are built from a collection of instances required to build an application
|
data/Gemfile.lock
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
aws-kicker (0.0.2)
|
5
|
-
fog (~> 1.7.0)
|
6
|
-
methadone (~> 1.2.4)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
aruba (0.5.1)
|
12
|
-
childprocess (~> 0.3.6)
|
13
|
-
cucumber (>= 1.1.1)
|
14
|
-
rspec-expectations (>= 2.7.0)
|
15
|
-
builder (3.1.4)
|
16
|
-
childprocess (0.3.7)
|
17
|
-
ffi (~> 1.0, >= 1.0.6)
|
18
|
-
cucumber (1.2.1)
|
19
|
-
builder (>= 2.1.2)
|
20
|
-
diff-lcs (>= 1.1.3)
|
21
|
-
gherkin (~> 2.11.0)
|
22
|
-
json (>= 1.4.6)
|
23
|
-
diff-lcs (1.1.3)
|
24
|
-
excon (0.16.10)
|
25
|
-
ffi (1.3.1)
|
26
|
-
fog (1.7.0)
|
27
|
-
builder
|
28
|
-
excon (~> 0.14)
|
29
|
-
formatador (~> 0.2.0)
|
30
|
-
mime-types
|
31
|
-
multi_json (~> 1.0)
|
32
|
-
net-scp (~> 1.0.4)
|
33
|
-
net-ssh (>= 2.1.3)
|
34
|
-
nokogiri (~> 1.5.0)
|
35
|
-
ruby-hmac
|
36
|
-
formatador (0.2.4)
|
37
|
-
gherkin (2.11.6)
|
38
|
-
json (>= 1.7.6)
|
39
|
-
json (1.7.6)
|
40
|
-
methadone (1.2.4)
|
41
|
-
bundler
|
42
|
-
mime-types (1.19)
|
43
|
-
multi_json (1.3.7)
|
44
|
-
net-scp (1.0.4)
|
45
|
-
net-ssh (>= 1.99.1)
|
46
|
-
net-ssh (2.2.2)
|
47
|
-
nokogiri (1.5.5)
|
48
|
-
rake (0.9.6)
|
49
|
-
rdoc (3.12)
|
50
|
-
json (~> 1.4)
|
51
|
-
rspec-expectations (2.12.1)
|
52
|
-
diff-lcs (~> 1.1.3)
|
53
|
-
ruby-hmac (0.4.0)
|
54
|
-
|
55
|
-
PLATFORMS
|
56
|
-
ruby
|
57
|
-
|
58
|
-
DEPENDENCIES
|
59
|
-
aruba
|
60
|
-
aws-kicker!
|
61
|
-
rake (~> 0.9.2)
|
62
|
-
rdoc
|