vagrant-mcs 0.6.0

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