tcr-vagrant-google 0.1.4
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/.gitignore +17 -0
- data/CHANGELOG.md +20 -0
- data/CONTRIB.md +64 -0
- data/Gemfile +24 -0
- data/LICENSE +201 -0
- data/README.md +237 -0
- data/Rakefile +35 -0
- data/example_box/README.md +13 -0
- data/example_box/metadata.json +3 -0
- data/google.box +0 -0
- data/lib/vagrant-google.rb +31 -0
- data/lib/vagrant-google/action.rb +140 -0
- data/lib/vagrant-google/action/connect_google.rb +49 -0
- data/lib/vagrant-google/action/is_created.rb +31 -0
- data/lib/vagrant-google/action/message_already_created.rb +29 -0
- data/lib/vagrant-google/action/message_not_created.rb +29 -0
- data/lib/vagrant-google/action/message_will_not_destroy.rb +29 -0
- data/lib/vagrant-google/action/read_ssh_info.rb +54 -0
- data/lib/vagrant-google/action/read_state.rb +59 -0
- data/lib/vagrant-google/action/run_instance.rb +145 -0
- data/lib/vagrant-google/action/sync_folders.rb +87 -0
- data/lib/vagrant-google/action/terminate_instance.rb +40 -0
- data/lib/vagrant-google/action/timed_provision.rb +34 -0
- data/lib/vagrant-google/action/warn_networks.rb +32 -0
- data/lib/vagrant-google/config.rb +265 -0
- data/lib/vagrant-google/errors.rb +32 -0
- data/lib/vagrant-google/plugin.rb +86 -0
- data/lib/vagrant-google/provider.rb +63 -0
- data/lib/vagrant-google/util/timer.rb +30 -0
- data/lib/vagrant-google/version.rb +18 -0
- data/locales/en.yml +105 -0
- data/spec/vagrant-google/config_spec.rb +202 -0
- data/tcr-vagrant-google.gemspec +75 -0
- metadata +173 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
# Copyright 2013 Google Inc. All Rights Reserved.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
$:.unshift File.expand_path("../lib", __FILE__)
|
16
|
+
require "vagrant-google/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "tcr-vagrant-google"
|
20
|
+
s.version = VagrantPlugins::Google::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = "Eric Johnson"
|
23
|
+
s.email = "erjohnso@google.com"
|
24
|
+
s.homepage = "http://www.vagrantup.com"
|
25
|
+
s.summary = "Vagrant provider plugin for Google Compute Engine."
|
26
|
+
s.description = "Enables Vagrant to manage Google Compute Engine instances."
|
27
|
+
|
28
|
+
s.required_rubygems_version = ">= 1.3.6"
|
29
|
+
s.rubyforge_project = "vagrant-google"
|
30
|
+
|
31
|
+
s.add_runtime_dependency "fog", "1.22"
|
32
|
+
s.add_runtime_dependency "google-api-client"
|
33
|
+
#s.add_runtime_dependency "pry"
|
34
|
+
#s.add_runtime_dependency "pry-nav"
|
35
|
+
#s.add_runtime_dependency "rb-readline"
|
36
|
+
|
37
|
+
s.add_development_dependency "rake"
|
38
|
+
s.add_development_dependency "rspec-core", "~> 2.12.2"
|
39
|
+
s.add_development_dependency "rspec-expectations", "~> 2.12.1"
|
40
|
+
s.add_development_dependency "rspec-mocks", "~> 2.12.1"
|
41
|
+
|
42
|
+
# The following block of code determines the files that should be included
|
43
|
+
# in the gem. It does this by reading all the files in the directory where
|
44
|
+
# this gemspec is, and parsing out the ignored files from the gitignore.
|
45
|
+
# Note that the entire gitignore(5) syntax is not supported, specifically
|
46
|
+
# the "!" syntax, but it should mostly work correctly.
|
47
|
+
root_path = File.dirname(__FILE__)
|
48
|
+
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
|
49
|
+
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
|
50
|
+
gitignore_path = File.join(root_path, ".gitignore")
|
51
|
+
gitignore = File.readlines(gitignore_path)
|
52
|
+
gitignore.map! { |line| line.chomp.strip }
|
53
|
+
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
|
54
|
+
|
55
|
+
unignored_files = all_files.reject do |file|
|
56
|
+
# Ignore any directories, the gemspec only cares about files
|
57
|
+
next true if File.directory?(file)
|
58
|
+
# Ignore any paths that match anything in the gitignore. We do
|
59
|
+
# two tests here:
|
60
|
+
#
|
61
|
+
# - First, test to see if the entire path matches the gitignore.
|
62
|
+
# - Second, match if the basename does, this makes it so that things
|
63
|
+
# like '.DS_Store' will match sub-directories too (same behavior
|
64
|
+
# as git).
|
65
|
+
#
|
66
|
+
gitignore.any? do |ignore|
|
67
|
+
File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
|
68
|
+
File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
s.files = unignored_files
|
73
|
+
s.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact
|
74
|
+
s.require_path = 'lib'
|
75
|
+
end
|
metadata
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tcr-vagrant-google
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Eric Johnson
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: fog
|
16
|
+
requirement: !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: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - '='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.22'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: google-api-client
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
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
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec-core
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.12.2
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.12.2
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec-expectations
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 2.12.1
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 2.12.1
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rspec-mocks
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 2.12.1
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2.12.1
|
110
|
+
description: Enables Vagrant to manage Google Compute Engine instances.
|
111
|
+
email: erjohnso@google.com
|
112
|
+
executables: []
|
113
|
+
extensions: []
|
114
|
+
extra_rdoc_files: []
|
115
|
+
files:
|
116
|
+
- CHANGELOG.md
|
117
|
+
- CONTRIB.md
|
118
|
+
- example_box/metadata.json
|
119
|
+
- example_box/README.md
|
120
|
+
- Gemfile
|
121
|
+
- google.box
|
122
|
+
- lib/vagrant-google/action/connect_google.rb
|
123
|
+
- lib/vagrant-google/action/is_created.rb
|
124
|
+
- lib/vagrant-google/action/message_already_created.rb
|
125
|
+
- lib/vagrant-google/action/message_not_created.rb
|
126
|
+
- lib/vagrant-google/action/message_will_not_destroy.rb
|
127
|
+
- lib/vagrant-google/action/read_ssh_info.rb
|
128
|
+
- lib/vagrant-google/action/read_state.rb
|
129
|
+
- lib/vagrant-google/action/run_instance.rb
|
130
|
+
- lib/vagrant-google/action/sync_folders.rb
|
131
|
+
- lib/vagrant-google/action/terminate_instance.rb
|
132
|
+
- lib/vagrant-google/action/timed_provision.rb
|
133
|
+
- lib/vagrant-google/action/warn_networks.rb
|
134
|
+
- lib/vagrant-google/action.rb
|
135
|
+
- lib/vagrant-google/config.rb
|
136
|
+
- lib/vagrant-google/errors.rb
|
137
|
+
- lib/vagrant-google/plugin.rb
|
138
|
+
- lib/vagrant-google/provider.rb
|
139
|
+
- lib/vagrant-google/util/timer.rb
|
140
|
+
- lib/vagrant-google/version.rb
|
141
|
+
- lib/vagrant-google.rb
|
142
|
+
- LICENSE
|
143
|
+
- locales/en.yml
|
144
|
+
- Rakefile
|
145
|
+
- README.md
|
146
|
+
- spec/vagrant-google/config_spec.rb
|
147
|
+
- tcr-vagrant-google.gemspec
|
148
|
+
- .gitignore
|
149
|
+
homepage: http://www.vagrantup.com
|
150
|
+
licenses: []
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.3.6
|
167
|
+
requirements: []
|
168
|
+
rubyforge_project: vagrant-google
|
169
|
+
rubygems_version: 1.8.24
|
170
|
+
signing_key:
|
171
|
+
specification_version: 3
|
172
|
+
summary: Vagrant provider plugin for Google Compute Engine.
|
173
|
+
test_files: []
|