vagrant-aws_stsmith 0.5.0.dev
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/CHANGELOG.md +76 -0
- data/Gemfile +10 -0
- data/LICENSE +8 -0
- data/README.md +251 -0
- data/Rakefile +21 -0
- data/dummy.box +0 -0
- data/example_box/README.md +13 -0
- data/example_box/metadata.json +3 -0
- data/lib/vagrant-aws/action/connect_aws.rb +46 -0
- data/lib/vagrant-aws/action/is_created.rb +18 -0
- data/lib/vagrant-aws/action/is_stopped.rb +18 -0
- data/lib/vagrant-aws/action/message_already_created.rb +16 -0
- data/lib/vagrant-aws/action/message_not_created.rb +16 -0
- data/lib/vagrant-aws/action/message_will_not_destroy.rb +16 -0
- data/lib/vagrant-aws/action/read_ssh_info.rb +53 -0
- data/lib/vagrant-aws/action/read_state.rb +38 -0
- data/lib/vagrant-aws/action/run_instance.rb +247 -0
- data/lib/vagrant-aws/action/start_instance.rb +81 -0
- data/lib/vagrant-aws/action/stop_instance.rb +28 -0
- data/lib/vagrant-aws/action/sync_folders.rb +118 -0
- data/lib/vagrant-aws/action/terminate_instance.rb +47 -0
- data/lib/vagrant-aws/action/timed_provision.rb +21 -0
- data/lib/vagrant-aws/action/wait_for_state.rb +41 -0
- data/lib/vagrant-aws/action/warn_networks.rb +19 -0
- data/lib/vagrant-aws/action.rb +190 -0
- data/lib/vagrant-aws/config.rb +372 -0
- data/lib/vagrant-aws/errors.rb +31 -0
- data/lib/vagrant-aws/plugin.rb +73 -0
- data/lib/vagrant-aws/provider.rb +50 -0
- data/lib/vagrant-aws/util/timer.rb +17 -0
- data/lib/vagrant-aws/version.rb +5 -0
- data/lib/vagrant-aws.rb +18 -0
- data/locales/en.yml +122 -0
- data/spec/vagrant-aws/config_spec.rb +216 -0
- data/vagrant-aws.gemspec +59 -0
- metadata +139 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
require "log4r"
|
2
|
+
require "vagrant"
|
3
|
+
|
4
|
+
module VagrantPlugins
|
5
|
+
module AWS
|
6
|
+
class Provider < Vagrant.plugin("2", :provider)
|
7
|
+
def initialize(machine)
|
8
|
+
@machine = machine
|
9
|
+
end
|
10
|
+
|
11
|
+
def action(name)
|
12
|
+
# Attempt to get the action method from the Action class if it
|
13
|
+
# exists, otherwise return nil to show that we don't support the
|
14
|
+
# given action.
|
15
|
+
action_method = "action_#{name}"
|
16
|
+
return Action.send(action_method) if Action.respond_to?(action_method)
|
17
|
+
nil
|
18
|
+
end
|
19
|
+
|
20
|
+
def ssh_info
|
21
|
+
# Run a custom action called "read_ssh_info" which does what it
|
22
|
+
# says and puts the resulting SSH info into the `:machine_ssh_info`
|
23
|
+
# key in the environment.
|
24
|
+
env = @machine.action("read_ssh_info")
|
25
|
+
env[:machine_ssh_info]
|
26
|
+
end
|
27
|
+
|
28
|
+
def state
|
29
|
+
# Run a custom action we define called "read_state" which does
|
30
|
+
# what it says. It puts the state in the `:machine_state_id`
|
31
|
+
# key in the environment.
|
32
|
+
env = @machine.action("read_state")
|
33
|
+
|
34
|
+
state_id = env[:machine_state_id]
|
35
|
+
|
36
|
+
# Get the short and long description
|
37
|
+
short = I18n.t("vagrant_aws.states.short_#{state_id}")
|
38
|
+
long = I18n.t("vagrant_aws.states.long_#{state_id}")
|
39
|
+
|
40
|
+
# Return the MachineState object
|
41
|
+
Vagrant::MachineState.new(state_id, short, long)
|
42
|
+
end
|
43
|
+
|
44
|
+
def to_s
|
45
|
+
id = @machine.id.nil? ? "new" : @machine.id
|
46
|
+
"AWS (#{id})"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module AWS
|
3
|
+
module Util
|
4
|
+
class Timer
|
5
|
+
# A basic utility method that times the execution of the given
|
6
|
+
# block and returns it.
|
7
|
+
def self.time
|
8
|
+
start_time = Time.now.to_f
|
9
|
+
yield
|
10
|
+
end_time = Time.now.to_f
|
11
|
+
|
12
|
+
end_time - start_time
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/vagrant-aws.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require "pathname"
|
2
|
+
|
3
|
+
require "vagrant-aws/plugin"
|
4
|
+
|
5
|
+
module VagrantPlugins
|
6
|
+
module AWS
|
7
|
+
lib_path = Pathname.new(File.expand_path("../vagrant-aws", __FILE__))
|
8
|
+
autoload :Action, lib_path.join("action")
|
9
|
+
autoload :Errors, lib_path.join("errors")
|
10
|
+
|
11
|
+
# This returns the path to the source of this plugin.
|
12
|
+
#
|
13
|
+
# @return [Pathname]
|
14
|
+
def self.source_root
|
15
|
+
@source_root ||= Pathname.new(File.expand_path("../../", __FILE__))
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/locales/en.yml
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
en:
|
2
|
+
vagrant_aws:
|
3
|
+
already_status: |-
|
4
|
+
The machine is already %{status}.
|
5
|
+
launching_instance: |-
|
6
|
+
Launching an instance with the following settings...
|
7
|
+
launch_no_keypair: |-
|
8
|
+
Warning! You didn't specify a keypair to launch your instance with.
|
9
|
+
This can sometimes result in not being able to access your instance.
|
10
|
+
launch_vpc_warning: |-
|
11
|
+
Warning! You're launching this instance into a VPC without an
|
12
|
+
elastic IP. Please verify you're properly connected to a VPN so
|
13
|
+
you can access this machine, otherwise Vagrant will not be able
|
14
|
+
to SSH into it.
|
15
|
+
not_created: |-
|
16
|
+
Instance is not created. Please run `vagrant up` first.
|
17
|
+
ready: |-
|
18
|
+
Machine is booted and ready for use!
|
19
|
+
rsync_not_found_warning: |-
|
20
|
+
Warning! Folder sync disabled because the rsync binary is missing in the %{side}.
|
21
|
+
Make sure rsync is installed and the binary can be found in the PATH.
|
22
|
+
rsync_folder: |-
|
23
|
+
Rsyncing folder: %{hostpath} => %{guestpath}
|
24
|
+
starting: |-
|
25
|
+
Starting the instance...
|
26
|
+
stopping: |-
|
27
|
+
Stopping the instance...
|
28
|
+
terminating: |-
|
29
|
+
Terminating the instance...
|
30
|
+
waiting_for_ready: |-
|
31
|
+
Waiting for instance to become "ready"...
|
32
|
+
waiting_for_ssh: |-
|
33
|
+
Waiting for SSH to become available...
|
34
|
+
warn_networks: |-
|
35
|
+
Warning! The AWS provider doesn't support any of the Vagrant
|
36
|
+
high-level network configurations (`config.vm.network`). They
|
37
|
+
will be silently ignored.
|
38
|
+
warn_ssh_access: |-
|
39
|
+
Warning! Vagrant might not be able to SSH into the instance.
|
40
|
+
Please check your security groups settings.
|
41
|
+
will_not_destroy: |-
|
42
|
+
The instance '%{name}' will not be destroyed, since the confirmation
|
43
|
+
was declined.
|
44
|
+
|
45
|
+
config:
|
46
|
+
access_key_id_required: |-
|
47
|
+
An access key ID must be specified via "access_key_id"
|
48
|
+
ami_required: |-
|
49
|
+
An AMI must be configured via "ami" (region: #{region})
|
50
|
+
private_key_missing: |-
|
51
|
+
The specified private key for AWS could not be found
|
52
|
+
region_required: |-
|
53
|
+
A region must be specified via "region"
|
54
|
+
secret_access_key_required: |-
|
55
|
+
A secret access key is required via "secret_access_key"
|
56
|
+
subnet_id_required_with_public_ip: |-
|
57
|
+
If you assign a public IP address to an instance in a VPC, a subnet must be specifed via "subnet_id"
|
58
|
+
|
59
|
+
errors:
|
60
|
+
fog_error: |-
|
61
|
+
There was an error talking to AWS. The error message is shown
|
62
|
+
below:
|
63
|
+
|
64
|
+
%{message}
|
65
|
+
internal_fog_error: |-
|
66
|
+
There was an error talking to AWS. The error message is shown
|
67
|
+
below:
|
68
|
+
|
69
|
+
Error: %{error}
|
70
|
+
Response: %{response}
|
71
|
+
instance_ready_timeout: |-
|
72
|
+
The instance never became "ready" in AWS. The timeout currently
|
73
|
+
set waiting for the instance to become ready is %{timeout} seconds.
|
74
|
+
Please verify that the machine properly boots. If you need more time
|
75
|
+
set the `instance_ready_timeout` configuration on the AWS provider.
|
76
|
+
rsync_error: |-
|
77
|
+
There was an error when attempting to rsync a share folder.
|
78
|
+
Please inspect the error message below for more info.
|
79
|
+
|
80
|
+
Host path: %{hostpath}
|
81
|
+
Guest path: %{guestpath}
|
82
|
+
Error: %{stderr}
|
83
|
+
mkdir_error: |-
|
84
|
+
There was an error when attempting to create a shared host folder.
|
85
|
+
Please inspect the error message below for more info.
|
86
|
+
|
87
|
+
Host path: %{hostpath}
|
88
|
+
Error: %{err}
|
89
|
+
|
90
|
+
states:
|
91
|
+
short_not_created: |-
|
92
|
+
not created
|
93
|
+
long_not_created: |-
|
94
|
+
The EC2 instance is not created. Run `vagrant up` to create it.
|
95
|
+
|
96
|
+
short_stopped: |-
|
97
|
+
stopped
|
98
|
+
long_stopped: |-
|
99
|
+
The EC2 instance is stopped. Run `vagrant up` to start it.
|
100
|
+
|
101
|
+
short_stopping: |-
|
102
|
+
stopping
|
103
|
+
long_stopping: |-
|
104
|
+
The EC2 instance is stopping. Wait until is completely stopped to
|
105
|
+
run `vagrant up` and start it.
|
106
|
+
|
107
|
+
short_pending: |-
|
108
|
+
pending
|
109
|
+
long_pending: |-
|
110
|
+
The EC2 instance is pending a start (i.e. this is a transition state).
|
111
|
+
|
112
|
+
short_running: |-
|
113
|
+
running
|
114
|
+
long_running: |-
|
115
|
+
The EC2 instance is running. To stop this machine, you can run
|
116
|
+
`vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
|
117
|
+
|
118
|
+
short_pending: |-
|
119
|
+
pending
|
120
|
+
long_pending: |-
|
121
|
+
The EC2 instance is still being initialized. To destroy this machine,
|
122
|
+
you can run `vagrant destroy`.
|
@@ -0,0 +1,216 @@
|
|
1
|
+
require "vagrant-aws/config"
|
2
|
+
|
3
|
+
describe VagrantPlugins::AWS::Config do
|
4
|
+
let(:instance) { described_class.new }
|
5
|
+
|
6
|
+
# Ensure tests are not affected by AWS credential environment variables
|
7
|
+
before :each do
|
8
|
+
ENV.stub(:[] => nil)
|
9
|
+
end
|
10
|
+
|
11
|
+
describe "defaults" do
|
12
|
+
subject do
|
13
|
+
instance.tap do |o|
|
14
|
+
o.finalize!
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
its("access_key_id") { should be_nil }
|
19
|
+
its("ami") { should be_nil }
|
20
|
+
its("availability_zone") { should be_nil }
|
21
|
+
its("instance_ready_timeout") { should == 120 }
|
22
|
+
its("instance_type") { should == "m1.small" }
|
23
|
+
its("keypair_name") { should be_nil }
|
24
|
+
its("private_ip_address") { should be_nil }
|
25
|
+
its("region") { should == "us-east-1" }
|
26
|
+
its("secret_access_key") { should be_nil }
|
27
|
+
its("security_groups") { should == [] }
|
28
|
+
its("subnet_id") { should be_nil }
|
29
|
+
its("iam_instance_profile_arn") { should be_nil }
|
30
|
+
its("iam_instance_profile_name") { should be_nil }
|
31
|
+
its("tags") { should == {} }
|
32
|
+
its("user_data") { should be_nil }
|
33
|
+
its("use_iam_profile") { should be_false }
|
34
|
+
its("block_device_mapping") {should == [] }
|
35
|
+
its("elastic_ip") { should be_nil }
|
36
|
+
its("terminate_on_shutdown") { should == false }
|
37
|
+
its("ssh_host_attribute") { should be_nil }
|
38
|
+
its("monitoring") { should == false }
|
39
|
+
its("ebs_optimized") { should == false }
|
40
|
+
its("associate_public_ip") { should == false }
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "overriding defaults" do
|
44
|
+
# I typically don't meta-program in tests, but this is a very
|
45
|
+
# simple boilerplate test, so I cut corners here. It just sets
|
46
|
+
# each of these attributes to "foo" in isolation, and reads the value
|
47
|
+
# and asserts the proper result comes back out.
|
48
|
+
[:access_key_id, :ami, :availability_zone, :instance_ready_timeout,
|
49
|
+
:instance_type, :keypair_name, :ssh_host_attribute, :ebs_optimized,
|
50
|
+
:region, :secret_access_key, :monitoring, :associate_public_ip,
|
51
|
+
:subnet_id, :tags, :elastic_ip, :terminate_on_shutdown,
|
52
|
+
:iam_instance_profile_arn, :iam_instance_profile_name,
|
53
|
+
:use_iam_profile, :user_data, :block_device_mapping].each do |attribute|
|
54
|
+
|
55
|
+
it "should not default #{attribute} if overridden" do
|
56
|
+
instance.send("#{attribute}=".to_sym, "foo")
|
57
|
+
instance.finalize!
|
58
|
+
instance.send(attribute).should == "foo"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
it "should not default security_groups if overridden" do
|
62
|
+
instance.security_groups = "foo"
|
63
|
+
instance.finalize!
|
64
|
+
instance.security_groups.should == ["foo"]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe "getting credentials from environment" do
|
69
|
+
context "without EC2 credential environment variables" do
|
70
|
+
subject do
|
71
|
+
instance.tap do |o|
|
72
|
+
o.finalize!
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
its("access_key_id") { should be_nil }
|
77
|
+
its("secret_access_key") { should be_nil }
|
78
|
+
end
|
79
|
+
|
80
|
+
context "with EC2 credential environment variables" do
|
81
|
+
before :each do
|
82
|
+
ENV.stub(:[]).with("AWS_ACCESS_KEY").and_return("access_key")
|
83
|
+
ENV.stub(:[]).with("AWS_SECRET_KEY").and_return("secret_key")
|
84
|
+
end
|
85
|
+
|
86
|
+
subject do
|
87
|
+
instance.tap do |o|
|
88
|
+
o.finalize!
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
its("access_key_id") { should == "access_key" }
|
93
|
+
its("secret_access_key") { should == "secret_key" }
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
describe "region config" do
|
98
|
+
let(:config_access_key_id) { "foo" }
|
99
|
+
let(:config_ami) { "foo" }
|
100
|
+
let(:config_instance_type) { "foo" }
|
101
|
+
let(:config_keypair_name) { "foo" }
|
102
|
+
let(:config_region) { "foo" }
|
103
|
+
let(:config_secret_access_key) { "foo" }
|
104
|
+
|
105
|
+
def set_test_values(instance)
|
106
|
+
instance.access_key_id = config_access_key_id
|
107
|
+
instance.ami = config_ami
|
108
|
+
instance.instance_type = config_instance_type
|
109
|
+
instance.keypair_name = config_keypair_name
|
110
|
+
instance.region = config_region
|
111
|
+
instance.secret_access_key = config_secret_access_key
|
112
|
+
end
|
113
|
+
|
114
|
+
it "should raise an exception if not finalized" do
|
115
|
+
expect { instance.get_region_config("us-east-1") }.
|
116
|
+
to raise_error
|
117
|
+
end
|
118
|
+
|
119
|
+
context "with no specific config set" do
|
120
|
+
subject do
|
121
|
+
# Set the values on the top-level object
|
122
|
+
set_test_values(instance)
|
123
|
+
|
124
|
+
# Finalize so we can get the region config
|
125
|
+
instance.finalize!
|
126
|
+
|
127
|
+
# Get a lower level region
|
128
|
+
instance.get_region_config("us-east-1")
|
129
|
+
end
|
130
|
+
|
131
|
+
its("access_key_id") { should == config_access_key_id }
|
132
|
+
its("ami") { should == config_ami }
|
133
|
+
its("instance_type") { should == config_instance_type }
|
134
|
+
its("keypair_name") { should == config_keypair_name }
|
135
|
+
its("region") { should == config_region }
|
136
|
+
its("secret_access_key") { should == config_secret_access_key }
|
137
|
+
end
|
138
|
+
|
139
|
+
context "with a specific config set" do
|
140
|
+
let(:region_name) { "hashi-region" }
|
141
|
+
|
142
|
+
subject do
|
143
|
+
# Set the values on a specific region
|
144
|
+
instance.region_config region_name do |config|
|
145
|
+
set_test_values(config)
|
146
|
+
end
|
147
|
+
|
148
|
+
# Finalize so we can get the region config
|
149
|
+
instance.finalize!
|
150
|
+
|
151
|
+
# Get the region
|
152
|
+
instance.get_region_config(region_name)
|
153
|
+
end
|
154
|
+
|
155
|
+
its("access_key_id") { should == config_access_key_id }
|
156
|
+
its("ami") { should == config_ami }
|
157
|
+
its("instance_type") { should == config_instance_type }
|
158
|
+
its("keypair_name") { should == config_keypair_name }
|
159
|
+
its("region") { should == region_name }
|
160
|
+
its("secret_access_key") { should == config_secret_access_key }
|
161
|
+
end
|
162
|
+
|
163
|
+
describe "inheritance of parent config" do
|
164
|
+
let(:region_name) { "hashi-region" }
|
165
|
+
|
166
|
+
subject do
|
167
|
+
# Set the values on a specific region
|
168
|
+
instance.region_config region_name do |config|
|
169
|
+
config.ami = "child"
|
170
|
+
end
|
171
|
+
|
172
|
+
# Set some top-level values
|
173
|
+
instance.access_key_id = "parent"
|
174
|
+
instance.ami = "parent"
|
175
|
+
|
176
|
+
# Finalize and get the region
|
177
|
+
instance.finalize!
|
178
|
+
instance.get_region_config(region_name)
|
179
|
+
end
|
180
|
+
|
181
|
+
its("access_key_id") { should == "parent" }
|
182
|
+
its("ami") { should == "child" }
|
183
|
+
end
|
184
|
+
|
185
|
+
describe "shortcut configuration" do
|
186
|
+
subject do
|
187
|
+
# Use the shortcut configuration to set some values
|
188
|
+
instance.region_config "us-east-1", :ami => "child"
|
189
|
+
instance.finalize!
|
190
|
+
instance.get_region_config("us-east-1")
|
191
|
+
end
|
192
|
+
|
193
|
+
its("ami") { should == "child" }
|
194
|
+
end
|
195
|
+
|
196
|
+
describe "merging" do
|
197
|
+
let(:first) { described_class.new }
|
198
|
+
let(:second) { described_class.new }
|
199
|
+
|
200
|
+
it "should merge the tags and block_device_mappings" do
|
201
|
+
first.tags["one"] = "one"
|
202
|
+
second.tags["two"] = "two"
|
203
|
+
first.block_device_mapping = [{:one => "one"}]
|
204
|
+
second.block_device_mapping = [{:two => "two"}]
|
205
|
+
|
206
|
+
third = first.merge(second)
|
207
|
+
third.tags.should == {
|
208
|
+
"one" => "one",
|
209
|
+
"two" => "two"
|
210
|
+
}
|
211
|
+
third.block_device_mapping.index({:one => "one"}).should_not be_nil
|
212
|
+
third.block_device_mapping.index({:two => "two"}).should_not be_nil
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
data/vagrant-aws.gemspec
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
$:.unshift File.expand_path("../lib", __FILE__)
|
2
|
+
require "vagrant-aws/version"
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "vagrant-aws_stsmith"
|
6
|
+
s.version = VagrantPlugins::AWS::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.license = "MIT"
|
9
|
+
s.authors = "Mitchell Hashimoto"
|
10
|
+
s.email = "mitchell@hashicorp.com"
|
11
|
+
s.homepage = "http://www.vagrantup.com"
|
12
|
+
s.summary = "Enables Vagrant to manage machines in EC2 and VPC."
|
13
|
+
s.description = "Enables Vagrant to manage machines in EC2 and VPC."
|
14
|
+
|
15
|
+
s.required_rubygems_version = ">= 1.3.6"
|
16
|
+
s.rubyforge_project = "vagrant-aws"
|
17
|
+
|
18
|
+
s.add_runtime_dependency "fog", "~> 1.22"
|
19
|
+
|
20
|
+
s.add_development_dependency "rake"
|
21
|
+
s.add_development_dependency "rspec-core", "~> 2.12.2"
|
22
|
+
s.add_development_dependency "rspec-expectations", "~> 2.12.1"
|
23
|
+
s.add_development_dependency "rspec-mocks", "~> 2.12.1"
|
24
|
+
|
25
|
+
# The following block of code determines the files that should be included
|
26
|
+
# in the gem. It does this by reading all the files in the directory where
|
27
|
+
# this gemspec is, and parsing out the ignored files from the gitignore.
|
28
|
+
# Note that the entire gitignore(5) syntax is not supported, specifically
|
29
|
+
# the "!" syntax, but it should mostly work correctly.
|
30
|
+
root_path = File.dirname(__FILE__)
|
31
|
+
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
|
32
|
+
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
|
33
|
+
gitignore_path = File.join(root_path, ".gitignore")
|
34
|
+
gitignore = File.readlines(gitignore_path)
|
35
|
+
gitignore.map! { |line| line.chomp.strip }
|
36
|
+
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
|
37
|
+
|
38
|
+
unignored_files = all_files.reject do |file|
|
39
|
+
# Ignore any directories, the gemspec only cares about files
|
40
|
+
next true if File.directory?(file)
|
41
|
+
|
42
|
+
# Ignore any paths that match anything in the gitignore. We do
|
43
|
+
# two tests here:
|
44
|
+
#
|
45
|
+
# - First, test to see if the entire path matches the gitignore.
|
46
|
+
# - Second, match if the basename does, this makes it so that things
|
47
|
+
# like '.DS_Store' will match sub-directories too (same behavior
|
48
|
+
# as git).
|
49
|
+
#
|
50
|
+
gitignore.any? do |ignore|
|
51
|
+
File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
|
52
|
+
File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
s.files = unignored_files
|
57
|
+
s.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
|
58
|
+
s.require_path = 'lib'
|
59
|
+
end
|
metadata
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vagrant-aws_stsmith
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0.dev
|
5
|
+
prerelease: 6
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mitchell Hashimoto
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-05-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: fog
|
16
|
+
requirement: &23099420 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.22'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *23099420
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rake
|
27
|
+
requirement: &23126560 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *23126560
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rspec-core
|
38
|
+
requirement: &23124440 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.12.2
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *23124440
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec-expectations
|
49
|
+
requirement: &23122940 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.12.1
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *23122940
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec-mocks
|
60
|
+
requirement: &23121280 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 2.12.1
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *23121280
|
69
|
+
description: Enables Vagrant to manage machines in EC2 and VPC.
|
70
|
+
email: mitchell@hashicorp.com
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files: []
|
74
|
+
files:
|
75
|
+
- vagrant-aws.gemspec
|
76
|
+
- dummy.box
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE
|
79
|
+
- locales/en.yml
|
80
|
+
- CHANGELOG.md
|
81
|
+
- spec/vagrant-aws/config_spec.rb
|
82
|
+
- Rakefile
|
83
|
+
- README.md
|
84
|
+
- example_box/README.md
|
85
|
+
- example_box/metadata.json
|
86
|
+
- lib/vagrant-aws.rb
|
87
|
+
- lib/vagrant-aws/plugin.rb
|
88
|
+
- lib/vagrant-aws/errors.rb
|
89
|
+
- lib/vagrant-aws/util/timer.rb
|
90
|
+
- lib/vagrant-aws/version.rb
|
91
|
+
- lib/vagrant-aws/config.rb
|
92
|
+
- lib/vagrant-aws/action.rb
|
93
|
+
- lib/vagrant-aws/provider.rb
|
94
|
+
- lib/vagrant-aws/action/is_stopped.rb
|
95
|
+
- lib/vagrant-aws/action/message_not_created.rb
|
96
|
+
- lib/vagrant-aws/action/message_already_created.rb
|
97
|
+
- lib/vagrant-aws/action/message_will_not_destroy.rb
|
98
|
+
- lib/vagrant-aws/action/run_instance.rb
|
99
|
+
- lib/vagrant-aws/action/read_ssh_info.rb
|
100
|
+
- lib/vagrant-aws/action/start_instance.rb
|
101
|
+
- lib/vagrant-aws/action/read_state.rb
|
102
|
+
- lib/vagrant-aws/action/warn_networks.rb
|
103
|
+
- lib/vagrant-aws/action/stop_instance.rb
|
104
|
+
- lib/vagrant-aws/action/connect_aws.rb
|
105
|
+
- lib/vagrant-aws/action/terminate_instance.rb
|
106
|
+
- lib/vagrant-aws/action/wait_for_state.rb
|
107
|
+
- lib/vagrant-aws/action/is_created.rb
|
108
|
+
- lib/vagrant-aws/action/sync_folders.rb
|
109
|
+
- lib/vagrant-aws/action/timed_provision.rb
|
110
|
+
- .gitignore
|
111
|
+
homepage: http://www.vagrantup.com
|
112
|
+
licenses:
|
113
|
+
- MIT
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ! '>='
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
hash: 2816429598683433443
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 1.3.6
|
133
|
+
requirements: []
|
134
|
+
rubyforge_project: vagrant-aws
|
135
|
+
rubygems_version: 1.8.11
|
136
|
+
signing_key:
|
137
|
+
specification_version: 3
|
138
|
+
summary: Enables Vagrant to manage machines in EC2 and VPC.
|
139
|
+
test_files: []
|