vagrant-aws-iam-decoder 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +19 -0
  5. data/CHANGELOG.md +96 -0
  6. data/Gemfile +12 -0
  7. data/LICENSE +8 -0
  8. data/README.md +326 -0
  9. data/Rakefile +22 -0
  10. data/dummy.box +0 -0
  11. data/example_box/README.md +13 -0
  12. data/example_box/metadata.json +3 -0
  13. data/lib/vagrant-aws-iam-decoder.rb +18 -0
  14. data/lib/vagrant-aws/action.rb +210 -0
  15. data/lib/vagrant-aws/action/connect_aws.rb +48 -0
  16. data/lib/vagrant-aws/action/elb_deregister_instance.rb +24 -0
  17. data/lib/vagrant-aws/action/elb_register_instance.rb +24 -0
  18. data/lib/vagrant-aws/action/is_created.rb +18 -0
  19. data/lib/vagrant-aws/action/is_stopped.rb +18 -0
  20. data/lib/vagrant-aws/action/message_already_created.rb +16 -0
  21. data/lib/vagrant-aws/action/message_not_created.rb +16 -0
  22. data/lib/vagrant-aws/action/message_will_not_destroy.rb +16 -0
  23. data/lib/vagrant-aws/action/package_instance.rb +192 -0
  24. data/lib/vagrant-aws/action/read_ssh_info.rb +53 -0
  25. data/lib/vagrant-aws/action/read_state.rb +38 -0
  26. data/lib/vagrant-aws/action/run_instance.rb +396 -0
  27. data/lib/vagrant-aws/action/start_instance.rb +81 -0
  28. data/lib/vagrant-aws/action/stop_instance.rb +28 -0
  29. data/lib/vagrant-aws/action/terminate_instance.rb +51 -0
  30. data/lib/vagrant-aws/action/timed_provision.rb +21 -0
  31. data/lib/vagrant-aws/action/wait_for_state.rb +41 -0
  32. data/lib/vagrant-aws/action/warn_networks.rb +19 -0
  33. data/lib/vagrant-aws/config.rb +601 -0
  34. data/lib/vagrant-aws/errors.rb +43 -0
  35. data/lib/vagrant-aws/plugin.rb +73 -0
  36. data/lib/vagrant-aws/provider.rb +50 -0
  37. data/lib/vagrant-aws/util/elb.rb +58 -0
  38. data/lib/vagrant-aws/util/timer.rb +17 -0
  39. data/lib/vagrant-aws/version.rb +5 -0
  40. data/locales/en.yml +161 -0
  41. data/spec/spec_helper.rb +1 -0
  42. data/spec/vagrant-aws/config_spec.rb +395 -0
  43. data/templates/metadata.json.erb +3 -0
  44. data/templates/vagrant-aws_package_Vagrantfile.erb +5 -0
  45. data/vagrant-aws-iam-decoder.gemspec +62 -0
  46. metadata +163 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ "provider": "aws"
3
+ }
@@ -0,0 +1,5 @@
1
+ Vagrant.configure("2") do |config|
2
+ config.vm.provider "aws" do |aws|
3
+ aws.region_config "<%= region %>", ami: "<%= ami %>"
4
+ end
5
+ end
@@ -0,0 +1,62 @@
1
+ $:.unshift File.expand_path("../lib", __FILE__)
2
+ require "vagrant-aws/version"
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "vagrant-aws-iam-decoder"
6
+ s.version = VagrantPlugins::AWS::VERSION
7
+ # http://guides.rubygems.org/patterns/#prerelease-gems
8
+ s.version = "#{s.version}.pre.#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
9
+ s.platform = Gem::Platform::RUBY
10
+ s.license = "MIT"
11
+ s.authors = "Mitchell Hashimoto"
12
+ s.email = "mitchell@hashicorp.com"
13
+ s.homepage = "https://github.com/iam-decoder/vagrant-aws"
14
+ s.summary = "Enables Vagrant to manage machines in EC2 and VPC."
15
+ s.description = "Enables Vagrant to manage machines in EC2 and VPC."
16
+
17
+ s.required_rubygems_version = ">= 1.3.6"
18
+ s.rubyforge_project = "vagrant-aws"
19
+
20
+ s.add_runtime_dependency "fog", "~> 1.22"
21
+ s.add_runtime_dependency "iniparse", "~> 1.4", ">= 1.4.2"
22
+
23
+ s.add_development_dependency "rake"
24
+ # rspec 3.4 to mock File
25
+ s.add_development_dependency "rspec", "~> 3.4"
26
+ s.add_development_dependency "rspec-its"
27
+
28
+ # The following block of code determines the files that should be included
29
+ # in the gem. It does this by reading all the files in the directory where
30
+ # this gemspec is, and parsing out the ignored files from the gitignore.
31
+ # Note that the entire gitignore(5) syntax is not supported, specifically
32
+ # the "!" syntax, but it should mostly work correctly.
33
+ root_path = File.dirname(__FILE__)
34
+ all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
35
+ all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
36
+ gitignore_path = File.join(root_path, ".gitignore")
37
+ gitignore = File.readlines(gitignore_path)
38
+ gitignore.map! { |line| line.chomp.strip }
39
+ gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
40
+
41
+ unignored_files = all_files.reject do |file|
42
+ # Ignore any directories, the gemspec only cares about files
43
+ next true if File.directory?(file)
44
+
45
+ # Ignore any paths that match anything in the gitignore. We do
46
+ # two tests here:
47
+ #
48
+ # - First, test to see if the entire path matches the gitignore.
49
+ # - Second, match if the basename does, this makes it so that things
50
+ # like '.DS_Store' will match sub-directories too (same behavior
51
+ # as git).
52
+ #
53
+ gitignore.any? do |ignore|
54
+ File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
55
+ File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
56
+ end
57
+ end
58
+
59
+ s.files = unignored_files
60
+ s.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
61
+ s.require_path = 'lib'
62
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-aws-iam-decoder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.2
5
+ platform: ruby
6
+ authors:
7
+ - Mitchell Hashimoto
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: fog
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.22'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.22'
27
+ - !ruby/object:Gem::Dependency
28
+ name: iniparse
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.4'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.4.2
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '1.4'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.4.2
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.4'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.4'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rspec-its
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ description: Enables Vagrant to manage machines in EC2 and VPC.
90
+ email: mitchell@hashicorp.com
91
+ executables: []
92
+ extensions: []
93
+ extra_rdoc_files: []
94
+ files:
95
+ - ".gitignore"
96
+ - ".rspec"
97
+ - ".travis.yml"
98
+ - CHANGELOG.md
99
+ - Gemfile
100
+ - LICENSE
101
+ - README.md
102
+ - Rakefile
103
+ - dummy.box
104
+ - example_box/README.md
105
+ - example_box/metadata.json
106
+ - lib/vagrant-aws-iam-decoder.rb
107
+ - lib/vagrant-aws/action.rb
108
+ - lib/vagrant-aws/action/connect_aws.rb
109
+ - lib/vagrant-aws/action/elb_deregister_instance.rb
110
+ - lib/vagrant-aws/action/elb_register_instance.rb
111
+ - lib/vagrant-aws/action/is_created.rb
112
+ - lib/vagrant-aws/action/is_stopped.rb
113
+ - lib/vagrant-aws/action/message_already_created.rb
114
+ - lib/vagrant-aws/action/message_not_created.rb
115
+ - lib/vagrant-aws/action/message_will_not_destroy.rb
116
+ - lib/vagrant-aws/action/package_instance.rb
117
+ - lib/vagrant-aws/action/read_ssh_info.rb
118
+ - lib/vagrant-aws/action/read_state.rb
119
+ - lib/vagrant-aws/action/run_instance.rb
120
+ - lib/vagrant-aws/action/start_instance.rb
121
+ - lib/vagrant-aws/action/stop_instance.rb
122
+ - lib/vagrant-aws/action/terminate_instance.rb
123
+ - lib/vagrant-aws/action/timed_provision.rb
124
+ - lib/vagrant-aws/action/wait_for_state.rb
125
+ - lib/vagrant-aws/action/warn_networks.rb
126
+ - lib/vagrant-aws/config.rb
127
+ - lib/vagrant-aws/errors.rb
128
+ - lib/vagrant-aws/plugin.rb
129
+ - lib/vagrant-aws/provider.rb
130
+ - lib/vagrant-aws/util/elb.rb
131
+ - lib/vagrant-aws/util/timer.rb
132
+ - lib/vagrant-aws/version.rb
133
+ - locales/en.yml
134
+ - spec/spec_helper.rb
135
+ - spec/vagrant-aws/config_spec.rb
136
+ - templates/metadata.json.erb
137
+ - templates/vagrant-aws_package_Vagrantfile.erb
138
+ - vagrant-aws-iam-decoder.gemspec
139
+ homepage: https://github.com/iam-decoder/vagrant-aws
140
+ licenses:
141
+ - MIT
142
+ metadata: {}
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 1.3.6
157
+ requirements: []
158
+ rubyforge_project: vagrant-aws
159
+ rubygems_version: 2.6.12
160
+ signing_key:
161
+ specification_version: 4
162
+ summary: Enables Vagrant to manage machines in EC2 and VPC.
163
+ test_files: []