vagrant-skytap 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-skytap/action/run_environment.rb +1 -23
- data/lib/vagrant-skytap/action/run_vm.rb +1 -21
- data/lib/vagrant-skytap/action.rb +5 -1
- data/lib/vagrant-skytap/api/busyable.rb +2 -2
- data/lib/vagrant-skytap/version.rb +1 -1
- metadata +2 -7
- data/Vagrantfile.orig +0 -34
- data/bar/checksums.yaml +0 -7
- data/bar/data.tar +0 -0
- data/bar/metadata +0 -242
- data/lib/vagrant-skytap/version.rb.orig +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0db322bf151366b7a7410bb0259e88305eeb9dd
|
4
|
+
data.tar.gz: 7cb5849243b0593c061cd0755f673c56a9ed2d6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac6feeb123dff79a296ebb4928c0d3304d0e11533e1e463ddee3aac1ab7af4e04d368afa2472a8698c2a99c3cd4ec3121d2814c490bdec4716a7c4ba46130ade
|
7
|
+
data.tar.gz: 30f7465992c8b4fda2b65083ba8521a20ac2a70c24b43a06afa00ee678e0c336e7f6a8975e182dad9dad96ff1574a5a08b0b67b0adf5ee57b929dce3ac48b32e
|
@@ -1,21 +1,9 @@
|
|
1
1
|
require "log4r"
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
require 'vagrant/util/retryable'
|
5
|
-
|
6
|
-
require 'vagrant-skytap/util/timer'
|
7
|
-
require 'vagrant-skytap/api/environment'
|
8
|
-
|
9
|
-
require 'net/https'
|
10
|
-
require 'uri'
|
11
|
-
require 'base64'
|
12
|
-
require 'json'
|
13
|
-
require 'timeout'
|
14
2
|
|
15
3
|
module VagrantPlugins
|
16
4
|
module Skytap
|
17
5
|
module Action
|
18
|
-
# Runs the Skytap environment
|
6
|
+
# Runs the Skytap environment.
|
19
7
|
class RunEnvironment
|
20
8
|
include Vagrant::Util::Retryable
|
21
9
|
|
@@ -29,24 +17,14 @@ module VagrantPlugins
|
|
29
17
|
|
30
18
|
def call(env)
|
31
19
|
env[:ui].info(I18n.t("vagrant_skytap.launching_instance"))
|
32
|
-
|
33
20
|
environment.run!
|
34
21
|
|
35
|
-
wait_for_ssh_ready
|
36
|
-
|
37
22
|
@app.call(env)
|
38
23
|
end
|
39
24
|
|
40
25
|
def environment
|
41
26
|
env[:environment]
|
42
27
|
end
|
43
|
-
|
44
|
-
def wait_for_ssh_ready
|
45
|
-
loop do
|
46
|
-
break if env[:interrupted] || env[:machine].communicate.ready?
|
47
|
-
sleep 1
|
48
|
-
end
|
49
|
-
end
|
50
28
|
end
|
51
29
|
end
|
52
30
|
end
|
@@ -1,21 +1,9 @@
|
|
1
1
|
require "log4r"
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
require 'vagrant/util/retryable'
|
5
|
-
|
6
|
-
require 'vagrant-skytap/util/timer'
|
7
|
-
require 'vagrant-skytap/api/environment'
|
8
|
-
|
9
|
-
require 'net/https'
|
10
|
-
require 'uri'
|
11
|
-
require 'base64'
|
12
|
-
require 'json'
|
13
|
-
require 'timeout'
|
14
2
|
|
15
3
|
module VagrantPlugins
|
16
4
|
module Skytap
|
17
5
|
module Action
|
18
|
-
# Runs the Skytap VM
|
6
|
+
# Runs the Skytap VM.
|
19
7
|
class RunVm
|
20
8
|
include Vagrant::Util::Retryable
|
21
9
|
|
@@ -30,7 +18,6 @@ module VagrantPlugins
|
|
30
18
|
def call(env)
|
31
19
|
env[:ui].info(I18n.t("vagrant_skytap.launching_vm"))
|
32
20
|
environment.current_vm.run!
|
33
|
-
wait_for_ssh_ready
|
34
21
|
|
35
22
|
@app.call(env)
|
36
23
|
end
|
@@ -38,13 +25,6 @@ module VagrantPlugins
|
|
38
25
|
def environment
|
39
26
|
env[:environment]
|
40
27
|
end
|
41
|
-
|
42
|
-
def wait_for_ssh_ready
|
43
|
-
loop do
|
44
|
-
break if env[:interrupted] || env[:machine].communicate.ready?
|
45
|
-
sleep 1
|
46
|
-
end
|
47
|
-
end
|
48
28
|
end
|
49
29
|
end
|
50
30
|
end
|
@@ -90,7 +90,10 @@ module VagrantPlugins
|
|
90
90
|
end
|
91
91
|
b1.use Call, IsStopped do |env2, b2|
|
92
92
|
b2.use Call, IsRunning do |env3, b3|
|
93
|
-
|
93
|
+
unless env3[:result]
|
94
|
+
b3.use RunVm
|
95
|
+
b3.use WaitForCommunicator
|
96
|
+
end
|
94
97
|
end
|
95
98
|
|
96
99
|
was_stopped = env2[:result]
|
@@ -215,6 +218,7 @@ module VagrantPlugins
|
|
215
218
|
end
|
216
219
|
|
217
220
|
b2.use RunVm
|
221
|
+
b2.use WaitForCommunicator
|
218
222
|
end
|
219
223
|
end
|
220
224
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-skytap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Astete
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -123,10 +123,6 @@ files:
|
|
123
123
|
- LICENSE
|
124
124
|
- README.md
|
125
125
|
- Rakefile
|
126
|
-
- Vagrantfile.orig
|
127
|
-
- bar/checksums.yaml
|
128
|
-
- bar/data.tar
|
129
|
-
- bar/metadata
|
130
126
|
- dummy.box
|
131
127
|
- example_box/README.md
|
132
128
|
- example_box/metadata.json
|
@@ -191,7 +187,6 @@ files:
|
|
191
187
|
- lib/vagrant-skytap/util/subnet.rb
|
192
188
|
- lib/vagrant-skytap/util/timer.rb
|
193
189
|
- lib/vagrant-skytap/version.rb
|
194
|
-
- lib/vagrant-skytap/version.rb.orig
|
195
190
|
- lib/vagrant-skytap/vm_properties.rb
|
196
191
|
- locales/en.yml
|
197
192
|
- skytap-dummy.box
|
data/Vagrantfile.orig
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
$script = <<SCRIPT
|
2
|
-
echo I am provisioning...
|
3
|
-
sudo apt-get install -y rbenv make ruby-dev libssl-dev libreadline-dev zlib1g-dev git bundler
|
4
|
-
export PATH="$HOME/.rbenv/bin:$PATH"
|
5
|
-
eval "$(rbenv init -)"
|
6
|
-
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
|
7
|
-
SCRIPT
|
8
|
-
|
9
|
-
Vagrant.configure(2) do |config|
|
10
|
-
config.vm.box = "skytap/empty"
|
11
|
-
config.vm.synced_folder ".", "/vagrant", disabled: true
|
12
|
-
config.vm.provision "shell", inline: $script
|
13
|
-
|
14
|
-
config.vm.provider :skytap do |skytap, override|
|
15
|
-
skytap.username = "etrue"
|
16
|
-
skytap.api_token = "fcb2620b72efddbc8239e25db9d812f510c7e166"
|
17
|
-
end
|
18
|
-
|
19
|
-
GENERIC_UBUNTU = 'https://cloud.skytap.com/vms/6869434'
|
20
|
-
UBUNTU1 = "https://cloud.skytap.com/vms/7285844"
|
21
|
-
UBUNTU2 = "https://cloud.skytap.com/vms/7285846"
|
22
|
-
UBUNTU_WITH_VAGRANT = "https://cloud.skytap.com/vms/7397734"
|
23
|
-
|
24
|
-
|
25
|
-
config.vm.define "vm1" do |ubuntu|
|
26
|
-
ubuntu.vm.hostname = "vm1"
|
27
|
-
ubuntu.vm.provider :skytap do |box|
|
28
|
-
box.vm_url = UBUNTU_WITH_VAGRANT
|
29
|
-
end
|
30
|
-
ubuntu.vm.synced_folder "~/test1", "/synced", type: :nfs
|
31
|
-
ubuntu.ssh.username = "skytap"
|
32
|
-
ubuntu.ssh.password = "ChangeMe!"
|
33
|
-
end
|
34
|
-
end
|
data/bar/checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 24a1c03bc0e10db880d99fa3af00f067b4d13ea6
|
4
|
-
data.tar.gz: 92bf878a29425935dbc71fd9f7980915e3b36da9
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 35aaa99e4ff841a64266ea41f96ce8dbf6966a55cf047be2ae8ff54650ac93044767a14ff8f625ec9be9e0afd69327f407b2464c4829e2db9040570da9a99c8c
|
7
|
-
data.tar.gz: 6f9f5299c9dc295e6d7ff1ffec8f1d939b025ea00e8f669be9b3bb63104189a8a8a295aa613b0c306cae240bfb33e3a0c0a76eeb4523ebd68c01f45ab153a6e7
|
data/bar/data.tar
DELETED
Binary file
|
data/bar/metadata
DELETED
@@ -1,242 +0,0 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
2
|
-
name: vagrant-skytap
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5
|
5
|
-
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Nick Astete
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
10
|
-
cert_chain: []
|
11
|
-
date: 2015-10-29 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: json
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
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: rspec-core
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 2.14.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 2.14.0
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec-expectations
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 2.14.0
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 2.14.0
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec-mocks
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 2.14.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.14.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: vagrant-spec
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.4.0
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 1.4.0
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: webmock
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.20'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.20'
|
111
|
-
description: Enables Vagrant to manage Skytap machines.
|
112
|
-
email: nastete@skytap.com
|
113
|
-
executables: []
|
114
|
-
extensions: []
|
115
|
-
extra_rdoc_files: []
|
116
|
-
files:
|
117
|
-
- ".gitignore"
|
118
|
-
- ".hgignore"
|
119
|
-
- ".project"
|
120
|
-
- ".rspec"
|
121
|
-
- CHANGELOG.md
|
122
|
-
- Gemfile
|
123
|
-
- LICENSE
|
124
|
-
- README.md
|
125
|
-
- Rakefile
|
126
|
-
- dummy.box
|
127
|
-
- example_box/README.md
|
128
|
-
- example_box/metadata.json
|
129
|
-
- lib/vagrant-skytap.rb
|
130
|
-
- lib/vagrant-skytap/action.rb
|
131
|
-
- lib/vagrant-skytap/action/add_vm_to_environment.rb
|
132
|
-
- lib/vagrant-skytap/action/create_environment.rb
|
133
|
-
- lib/vagrant-skytap/action/delete_environment.rb
|
134
|
-
- lib/vagrant-skytap/action/delete_vm.rb
|
135
|
-
- lib/vagrant-skytap/action/existence_check.rb
|
136
|
-
- lib/vagrant-skytap/action/fetch_environment.rb
|
137
|
-
- lib/vagrant-skytap/action/initialize_api_client.rb
|
138
|
-
- lib/vagrant-skytap/action/is_running.rb
|
139
|
-
- lib/vagrant-skytap/action/is_stopped.rb
|
140
|
-
- lib/vagrant-skytap/action/is_suspended.rb
|
141
|
-
- lib/vagrant-skytap/action/message_already_created.rb
|
142
|
-
- lib/vagrant-skytap/action/message_already_running.rb
|
143
|
-
- lib/vagrant-skytap/action/message_environment_url.rb
|
144
|
-
- lib/vagrant-skytap/action/message_not_created.rb
|
145
|
-
- lib/vagrant-skytap/action/message_will_not_destroy.rb
|
146
|
-
- lib/vagrant-skytap/action/mixin_machine_index.rb
|
147
|
-
- lib/vagrant-skytap/action/prepare_nfs_settings.rb
|
148
|
-
- lib/vagrant-skytap/action/prepare_nfs_valid_ids.rb
|
149
|
-
- lib/vagrant-skytap/action/read_ssh_info.rb
|
150
|
-
- lib/vagrant-skytap/action/read_state.rb
|
151
|
-
- lib/vagrant-skytap/action/run_environment.rb
|
152
|
-
- lib/vagrant-skytap/action/run_vm.rb
|
153
|
-
- lib/vagrant-skytap/action/set_hostname.rb
|
154
|
-
- lib/vagrant-skytap/action/set_up_vm.rb
|
155
|
-
- lib/vagrant-skytap/action/stop_environment.rb
|
156
|
-
- lib/vagrant-skytap/action/stop_vm.rb
|
157
|
-
- lib/vagrant-skytap/action/store_extra_data.rb
|
158
|
-
- lib/vagrant-skytap/action/suspend_environment.rb
|
159
|
-
- lib/vagrant-skytap/action/suspend_vm.rb
|
160
|
-
- lib/vagrant-skytap/action/timed_provision.rb
|
161
|
-
- lib/vagrant-skytap/action/update_hardware.rb
|
162
|
-
- lib/vagrant-skytap/api/busyable.rb
|
163
|
-
- lib/vagrant-skytap/api/client.rb
|
164
|
-
- lib/vagrant-skytap/api/credentials.rb
|
165
|
-
- lib/vagrant-skytap/api/environment.rb
|
166
|
-
- lib/vagrant-skytap/api/interface.rb
|
167
|
-
- lib/vagrant-skytap/api/network.rb
|
168
|
-
- lib/vagrant-skytap/api/public_ip.rb
|
169
|
-
- lib/vagrant-skytap/api/published_service.rb
|
170
|
-
- lib/vagrant-skytap/api/resource.rb
|
171
|
-
- lib/vagrant-skytap/api/runstate_operations.rb
|
172
|
-
- lib/vagrant-skytap/api/specified_attributes.rb
|
173
|
-
- lib/vagrant-skytap/api/vm.rb
|
174
|
-
- lib/vagrant-skytap/api/vpn.rb
|
175
|
-
- lib/vagrant-skytap/api/vpn_attachment.rb
|
176
|
-
- lib/vagrant-skytap/config.rb
|
177
|
-
- lib/vagrant-skytap/core_ext/object/blank.rb
|
178
|
-
- lib/vagrant-skytap/core_ext/object/tap.rb
|
179
|
-
- lib/vagrant-skytap/core_ext/try.rb
|
180
|
-
- lib/vagrant-skytap/environment_properties.rb
|
181
|
-
- lib/vagrant-skytap/errors.rb
|
182
|
-
- lib/vagrant-skytap/plugin.rb
|
183
|
-
- lib/vagrant-skytap/properties.rb
|
184
|
-
- lib/vagrant-skytap/provider.rb
|
185
|
-
- lib/vagrant-skytap/setup_helper.rb
|
186
|
-
- lib/vagrant-skytap/util/ip_address.rb
|
187
|
-
- lib/vagrant-skytap/util/subnet.rb
|
188
|
-
- lib/vagrant-skytap/util/timer.rb
|
189
|
-
- lib/vagrant-skytap/version.rb
|
190
|
-
- lib/vagrant-skytap/vm_properties.rb
|
191
|
-
- locales/en.yml
|
192
|
-
- skytap-dummy.box
|
193
|
-
- spec/acceptance/base.rb
|
194
|
-
- spec/acceptance/provider/halt_spec.rb
|
195
|
-
- spec/acceptance/shared/context_skytap.rb
|
196
|
-
- spec/spec_helper.rb
|
197
|
-
- spec/support/isolated_environment.rb
|
198
|
-
- spec/unit/base.rb
|
199
|
-
- spec/unit/config_spec.rb
|
200
|
-
- spec/unit/environment_spec.rb
|
201
|
-
- spec/unit/skeletons/empty_environment.json
|
202
|
-
- spec/unit/skeletons/network1.json
|
203
|
-
- spec/unit/skeletons/vm1.json
|
204
|
-
- spec/unit/support/dummy_communicator.rb
|
205
|
-
- spec/unit/support/dummy_provider.rb
|
206
|
-
- spec/unit/support/isolated_environment.rb
|
207
|
-
- spec/unit/support/shared/action_synced_folders_context.rb
|
208
|
-
- spec/unit/support/shared/base_context.rb
|
209
|
-
- spec/unit/support/shared/capability_helpers_context.rb
|
210
|
-
- spec/unit/support/shared/plugin_command_context.rb
|
211
|
-
- spec/unit/support/shared/skytap_context.rb
|
212
|
-
- spec/unit/vm_spec.rb
|
213
|
-
- tasks/acceptance.rake
|
214
|
-
- tasks/bundler.rake
|
215
|
-
- tasks/test.rake
|
216
|
-
- vagrant-skytap.gemspec
|
217
|
-
- vagrant-spec.config.rb
|
218
|
-
homepage: http://www.skytap.com
|
219
|
-
licenses:
|
220
|
-
- MIT
|
221
|
-
metadata: {}
|
222
|
-
post_install_message:
|
223
|
-
rdoc_options: []
|
224
|
-
require_paths:
|
225
|
-
- lib
|
226
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
227
|
-
requirements:
|
228
|
-
- - ">="
|
229
|
-
- !ruby/object:Gem::Version
|
230
|
-
version: '0'
|
231
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
|
-
requirements:
|
233
|
-
- - ">="
|
234
|
-
- !ruby/object:Gem::Version
|
235
|
-
version: 1.3.6
|
236
|
-
requirements: []
|
237
|
-
rubyforge_project: vagrant-skytap
|
238
|
-
rubygems_version: 2.4.5
|
239
|
-
signing_key:
|
240
|
-
specification_version: 4
|
241
|
-
summary: Enables Vagrant to manage Skytap machines.
|
242
|
-
test_files: []
|