ec2launcher 1.7.2 → 1.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.7.3
2
+
3
+ * Fixed issue with Gemspec not installing executables correctly.
4
+
1
5
  ## 1.7.2
2
6
 
3
7
  * Strip blank lines and comments from setup files that are included in the user-data to reduce payload size.
data/bin/ec2launcher ADDED
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (c) 2012 Sean Laurent
4
+ #
5
+ require 'erb'
6
+
7
+ require 'ec2launcher'
8
+ require 'ec2launcher/init_options'
9
+ require 'ec2launcher/terminator'
10
+
11
+ opt_parser = EC2Launcher::InitOptions.new
12
+ opt_parser.parse(ARGV)
13
+
14
+ if opt_parser.command == "init"
15
+ if File.exists?(opt_parser.location)
16
+ puts "ERROR! Location '#{opt_parser.location} already exists!"
17
+ exit 2
18
+ end
19
+ Dir.mkdir(opt_parser.location)
20
+ Dir.chdir(opt_parser.location)
21
+
22
+ Dir.mkdir("applications")
23
+ Dir.mkdir("environments")
24
+
25
+ new_config_template = ERB.new(EC2Launcher::Config::DEFAULT_CONFIG_ERB)
26
+ File.open("config.rb", 'w') {|f| f.write(new_config_template.result)}
27
+
28
+ puts "Successfully created #{opt_parser.location}"
29
+ elsif opt_parser.command =~ /^term/
30
+ terminator = EC2Launcher::Terminator.new(opt_parser.options.directory)
31
+ terminator.terminate(opt_parser.hostname, opt_parser.options.access_key, opt_parser.options.secret_key, opt_parser.options.snapshot_removal, opt_parser.options.force)
32
+ elsif opt_parser.command == "launch"
33
+ launcher = EC2Launcher::Launcher.new
34
+ launcher.launch(opt_parser.options)
35
+ else
36
+ opt_parser.help
37
+ exit 1
38
+ end
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require 'rake'
3
+ require File.expand_path('../lib/ec2launcher/version', __FILE__)
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.authors = ["Sean Laurent"]
7
+ gem.description = %q{Tool to manage application configurations and launch new EC2 instances based on the configurations.}
8
+ gem.summary = %q{Tool to launch EC2 instances.}
9
+ gem.homepage = "https://github.com/StudyBlue/ec2launcher"
10
+
11
+ gem.license = "Apache 2.0"
12
+
13
+ gem.files = `git ls-files`.split($\)
14
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
+ gem.test_files = FileList['test/**/*.rb'].to_a
16
+ gem.name = "ec2launcher"
17
+ gem.require_paths = ["lib"]
18
+ gem.version = EC2Launcher::VERSION
19
+
20
+ gem.add_runtime_dependency "aws-sdk", [">= 1.8.0"]
21
+ gem.add_runtime_dependency "log4r"
22
+
23
+ gem.add_development_dependency "minitest"
24
+ gem.add_development_dependency "rake"
25
+ end
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2013 Sean Laurent
3
3
  #
4
4
  module EC2Launcher
5
- VERSION = "1.7.2"
5
+ VERSION = "1.7.3"
6
6
  end
@@ -0,0 +1,2 @@
1
+ require "minitest/autorun"
2
+ require 'ec2launcher/hostnames/hostname_generator'
@@ -0,0 +1,14 @@
1
+ #
2
+ # Copyright (c) 2012 Sean Laurent
3
+ #
4
+
5
+ # Handles YARD documentation for the custom DSL methods
6
+ class DSLAttributeHandler < YARD::Handlers::Ruby::AttributeHandler
7
+ handles_method_call(:dsl_accessor)
8
+ handles_method_call(:dsl_array_accessor)
9
+ namespace_only
10
+
11
+ def process
12
+ push_state(:scope => :class) { super }
13
+ end
14
+ end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ec2launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Sean Laurent
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-05-29 00:00:00.000000000 Z
12
+ date: 2013-06-10 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: aws-sdk
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: log4r
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: minitest
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ! '>='
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ! '>='
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rake
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ! '>='
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ! '>='
67
76
  - !ruby/object:Gem::Version
@@ -69,10 +78,20 @@ dependencies:
69
78
  description: Tool to manage application configurations and launch new EC2 instances
70
79
  based on the configurations.
71
80
  email:
72
- executables: []
81
+ executables:
82
+ - ec2launcher
73
83
  extensions: []
74
84
  extra_rdoc_files: []
75
85
  files:
86
+ - .gitignore
87
+ - CHANGELOG.md
88
+ - Gemfile
89
+ - LICENSE
90
+ - README.md
91
+ - Rakefile
92
+ - bin/ec2launcher
93
+ - ec2launcher.gemspec
94
+ - lib/ec2launcher.rb
76
95
  - lib/ec2launcher/application_processor.rb
77
96
  - lib/ec2launcher/aws_initializer.rb
78
97
  - lib/ec2launcher/backoff_runner.rb
@@ -97,45 +116,41 @@ files:
97
116
  - lib/ec2launcher/security_group_handler.rb
98
117
  - lib/ec2launcher/terminator.rb
99
118
  - lib/ec2launcher/version.rb
100
- - lib/ec2launcher.rb
101
- - CHANGELOG.md
102
- - Gemfile
103
- - Gemfile.lock
104
- - LICENSE
105
- - Rakefile
106
- - README.md
119
+ - startup-scripts/runurl
120
+ - startup-scripts/setup.rb
121
+ - startup-scripts/setup_instance.rb
107
122
  - test/spec/dynamic_hostname_generator_spec.rb
108
123
  - test/spec/hostnames/host_name_generation_spec.rb
124
+ - test/spec/untitled
109
125
  - test/test_helper.rb
110
126
  - test/unit/block_device_builder.rb
111
127
  - test/unit/dsl/config_parser_test.rb
112
128
  - test/unit/route53_test.rb
113
- - startup-scripts/runurl
114
- - startup-scripts/setup.rb
115
- - startup-scripts/setup_instance.rb
129
+ - yard_extensions/dsl_attribute_handler.rb
116
130
  homepage: https://github.com/StudyBlue/ec2launcher
117
131
  licenses:
118
132
  - Apache 2.0
119
- metadata: {}
120
133
  post_install_message:
121
134
  rdoc_options: []
122
135
  require_paths:
123
136
  - lib
124
137
  required_ruby_version: !ruby/object:Gem::Requirement
138
+ none: false
125
139
  requirements:
126
140
  - - ! '>='
127
141
  - !ruby/object:Gem::Version
128
142
  version: '0'
129
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
+ none: false
130
145
  requirements:
131
146
  - - ! '>='
132
147
  - !ruby/object:Gem::Version
133
148
  version: '0'
134
149
  requirements: []
135
150
  rubyforge_project:
136
- rubygems_version: 2.0.2
151
+ rubygems_version: 1.8.25
137
152
  signing_key:
138
- specification_version: 4
153
+ specification_version: 3
139
154
  summary: Tool to launch EC2 instances.
140
155
  test_files:
141
156
  - test/spec/dynamic_hostname_generator_spec.rb
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ODkxNjJkYWE2NDVlZWQ4M2E5M2NjM2QxNmZhY2YyYTgzODUzMWIwNw==
5
- data.tar.gz: !binary |-
6
- NjhlN2JmYjk1NmY0MTAxY2I3MWY2YzIwZjkxMmJlNjMyNmYwZGY5NQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- Y2MxYzE2ZjNmNjc5OTBhMzgxY2FhODY3MzY5ZjVkNjJiMzQxNDkzNDdlY2Nh
10
- M2FhNjMwMDM2ZWEzNDZkZWIwM2U1MDI3NmViZTQxYjk1ZGYzYTA1OTIyOGFl
11
- M2ZhODFjYmJhMTlkZjczYjg3MjMyYjczNDliOWI4MzA5ZWYyMmU=
12
- data.tar.gz: !binary |-
13
- NzY0NGI1ZTI0NGYyZDQyZGEzNzAxNzIwNjU3ODY4NThjNTQzZWYwOWE1YTI0
14
- ZmQxZTI3MDlmNzMxNWFlOWJlNDRlNjQ4ZDgyOTY3OWEyOTIyZjMyOTQ0ZWUz
15
- Y2MwN2YwN2M4MDFkNmUyMTFmOTQ5YTg5M2Q5NzgwNmVjMDY2MWU=
data/Gemfile.lock DELETED
@@ -1,28 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- ec2launcher (1.7.0)
5
- aws-sdk (>= 1.8.0)
6
- log4r
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- aws-sdk (1.9.5)
12
- json (~> 1.4)
13
- nokogiri (>= 1.4.4)
14
- uuidtools (~> 2.1)
15
- json (1.7.7)
16
- log4r (1.1.10)
17
- minitest (4.1.0)
18
- nokogiri (1.5.9)
19
- rake (0.9.2.2)
20
- uuidtools (2.1.4)
21
-
22
- PLATFORMS
23
- ruby
24
-
25
- DEPENDENCIES
26
- ec2launcher!
27
- minitest
28
- rake