vagrant-skytap 0.1.8 → 0.1.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b61ae87962ec7b6d32f9e91f4e079b752be611a
4
- data.tar.gz: d708d90776b11130d734c2ebcb74214025551b14
3
+ metadata.gz: e19cbaf097a57ebf9591cf5780df597755261368
4
+ data.tar.gz: 2e5bfc36ce8f253aa194b233875b223de155f479
5
5
  SHA512:
6
- metadata.gz: 98dbdd4ef66337d74f705f42e1c5e899f2cd6eed1abf66b21b2be50795f702fb4bbf337a22cd43ee80b1bc3a7a6052f07a097a180980618af1add604278684fe
7
- data.tar.gz: 6db84848f59c46d664f22203953794ec53557b99d6dd8707f64c285de825dae1039e6bf6d9b525cd84aef1a575916c7145a6000a56321c4a7602a407828412ba
6
+ metadata.gz: 3b80bc274cd050ab2a7e3f5f780228ca05bd822bbd2bf5491f1f9f310c8646a2038c6d109c8a762c29e5e99140afb8020f764644216b75fa35d7c5ea56e8df64
7
+ data.tar.gz: 6c7f0f3f8220d7da351d48c5e13da5afdfca48741cc61e2b1a03591fed3e5db8667c5bdebc8d06684a2be99242dc0b1eb135ec8b57e862924e65eaf20ba814b0
data/.byebug_history CHANGED
@@ -1,256 +1,256 @@
1
1
  c
2
- VagrantPlugins::Skytap::Plugin.components.commands
3
- VagrantPlugins::CommandUp::Plugin.components.commands
4
- VagrantPlugins::CommandUp::Plugin.components
5
- VagrantPlugins::Skytap::Plugin.components
6
- @registered.last.components
7
- @registered.last
8
- plugin
9
- l
10
- puts @registered
11
- @registered
2
+ $!
3
+ up
12
4
  finish
5
+ @adapter
6
+ n
13
7
  s
14
- @sub_command
15
- c
16
- Vagrant.plugin("2").manager.commands[@sub_command.to_sym]
17
- @sub_command
18
- command_plugin
19
- Vagrant.plugin("2").manager.commands
20
- @sub_args
21
- @main_args
22
- @sub_command
23
- command_plugin
24
- up
25
- @env
26
- env
27
- provider
28
- q
29
- Q
30
- puts $LOAD_PATH
31
- require 'ap'
32
- $LOAD_PATH
8
+ n
33
9
  c
34
- finish
10
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", 'zzz', "-o", "comm")
11
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", '0', "-o", "comm")
12
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", 'zzz', "-o", "comm")
13
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", 'zzz', "-o", "comm").stderr
14
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", '2222', "-o", "comm").stderr
15
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", '2222', "-o", "comm")
16
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", '22222', "-o", "comm")
17
+ foo.split("\n").last
18
+ foo.split("\n")
19
+ foo.split('\n')
20
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", pid.to_s, "-o", "comm").stdout
21
+ foo.stdout.split("\n").last =~ /^autossh\b/
22
+ foo.stdout.split("\n").last =~ /^ftail\b/
23
+ foo.stdout.split("\n").last =~ /^tail\b/
24
+ foo.stdout.split("\n").last
25
+ foo.stderr
26
+ foo.stdout.split("\n").last
27
+ foo.stdout.split("\n")
28
+ foo.stdout.split('\n')
29
+ foo.stdout
30
+ puts foo.stdout
31
+ foo.stdout
32
+ foo.to_s
33
+ foo.read
34
+ foo
35
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", pid.to_s, "-o", "args")
36
+ foo = Vagrant::Util::Subprocess.execute("ps", "-p", pid, "-o", "args")
37
+ foo.read
38
+ foo.read.to_s
39
+ puts foo.read
40
+ puts foo
41
+ foo.read
42
+ foo = IO.popen('ps -a')
43
+ IO.popen('ps -a')
35
44
  s
45
+ n
36
46
  c
37
- @env.default_provider
38
- @env.provider.active_machines
39
- @env.active_machines
40
- @env.provider
41
- @env[:provider]
42
- @env
47
+ Sys::ProcTable
48
+ Process.kill 0, 999
49
+ Process.kill 0, pid
50
+ pid
51
+ s
52
+ n
43
53
  c
44
- c 23
45
- c 18
46
- l
47
- @env
48
- VagrantPlugins::CommandUp::Command
49
- require 'vagrant/../../plugins/commands/up/command'
50
- require 'vagrant/../../plugins'
51
- VagrantPlugins::CommandUp::Command
54
+ $!
52
55
  s
53
- l
54
- @argv
55
- require "../plugins"
56
- require 'fofofof'
57
- return Command::Up
58
- ap data
59
- guest
60
- command
61
- name
62
- ap components.name
63
- ap components.configs
64
- ap components
65
- require 'ap'
66
- components
67
- env
68
- provider
69
- name
70
- self.provider.inspect
71
- self.provider
72
- self
56
+ pid
57
+ n
58
+ pidfile.class
59
+ pidfile.inspect
60
+ n
61
+ pidfile.class
73
62
  c
74
63
  finish
75
- @items
76
- key
77
- finish
78
- @components
79
64
  s
65
+ pidfile
80
66
  c
81
- display opts
82
- c
83
- display name
84
- name
85
- c
67
+ $!
86
68
  n
87
- opts
69
+ pidfiles
88
70
  s
71
+ n
72
+ read_pidfiles
89
73
  c
90
- b 73
91
- vm_addr
92
- vm_hostname
93
- guestport
94
- q
95
- c
74
+ read_pidfiles
96
75
  q
97
- tunnel_args
98
- @env[:machine].config.vm.hostname
99
- env[:machine].config.vm.hostname
100
- props.ssh_info[:host]
101
- props.ssh_info
102
- props = VmProperties.new(data_dir)
103
- tunnel_args
104
- c
105
- tunnel_args
106
- exec 'ruby', *tunnel_args
107
- c
108
- tunnel_args = ["--vm_addr", "10.1.132.143", "--vm_username", "skytap", "--keyfile", "#{data_dir}/private_key", "--hostport", port[:hostport], "--vm_hostname", "vm1", "--guestport", port[:guestport]]
109
76
  c
110
- p v
111
- v
112
- q
113
- options
114
- q
115
- options
116
- keyfile
77
+ n
78
+ Dir.glob('*')
79
+ Dir[File.join('~etrue')]
80
+ Dir[File.join('~etrue', '.rbenv')]
81
+ Dir[File.join('~etrue', '.rbenv')].glob("r*")
82
+ Dir['~etrue'].glob("r*")
83
+ Dir['~etrue'].glob("*.*")
84
+ Dir.glob("*.pid")
85
+ Dir.glob("*")
86
+ Dir.chdir(@env[:machine].data_dir)
87
+ Dir.glob("*")
88
+ d.glob("*")
89
+ puts d
90
+ d = Dir.new(@env[:machine].data_dir)
91
+ Dir.new(@env[:machine].data_dir).glob
92
+ Dir(@env[:machine].data_dir).glob
93
+ Dir
94
+ @env[:machine].data_dir
117
95
  c
118
- options
96
+ @env[:forwarded_ports]
97
+ message_attributes
98
+ port_info[:fp].guest_port
99
+ port_info.guest_port
100
+ port_info[:fp]
101
+ port_info.keys
119
102
  c
120
- options
103
+ n
121
104
  c
122
- p v
123
- v
105
+ n
106
+ finish
124
107
  c
125
- options
108
+ autossh_args << "#{ssh_info[:username]}@#{ssh_info[:host]}"
109
+ autossh_args.pop
110
+ autossh_args
111
+ n
112
+ ssh_info
126
113
  c
127
- p v
128
- v
114
+ n
129
115
  c
130
- args
131
- puts v
132
- v
116
+ port_info[:guestip] = env_hash[:nfs_machine_ip]
117
+ port_info
118
+ port
119
+ env_hash[:nfs_host_ip]
120
+ env_hash[:nfs_machine_ip]
121
+ env_hash.keys
133
122
  c
134
- options
135
- n
123
+ env_hash[:nfs_machine_ip]
124
+ env_hash[:nfs_host_ip]
125
+ env_hash.keys
126
+ ssh_info
127
+ port_info
136
128
  c
137
- vm_username
138
- vm_addr
129
+ port_info
139
130
  c
131
+ ssh_info
140
132
  n
141
- argv
142
133
  s
134
+ c 111
143
135
  n
144
- finish
145
- n
146
- banner
147
136
  s
148
- c 26
149
- n
137
+ c 87
138
+ c
139
+ port[:guestport] == 22 && port[:hostport] == 2222
140
+ port.inspect
141
+ port
142
+ c
143
+ port.inspect
144
+ port[:guestport] == 22 && port[:hostport] == 2222
150
145
  c
151
146
  n
152
- q
153
- vm_username
154
- vm_addr
155
- q
156
- keyfile
157
- vm_addr
147
+ machine.data_dir.join("private_key")
148
+ n
149
+ ssh_info
158
150
  c
159
- keyfile
160
- q
161
- keyfile
151
+ @env.keys
152
+ up
153
+ ssh_info
162
154
  c
163
- q
155
+ @env[:machine_ssh_info]
156
+ @env.keys
157
+ @env
158
+ up
159
+ env
160
+ @env
161
+ @en
164
162
  c
165
- ARGV
166
- argv
167
- $ARGV
163
+ ssh_info
168
164
  c
169
- cmd
170
- n
165
+ env.keys
166
+ env.machine
167
+ env
168
+ env[:machine]
169
+ s
170
+ pidfile_name(port_info, env)
171
171
  c
172
+ $!
172
173
  n
174
+ port_info.reject{|k,v|k==:interface}
175
+ port_info.keys
176
+ port_info
173
177
  c
174
- pid
178
+ HostDarwin::Cap::SSHTunnel
175
179
  n
180
+ Dir.pwd
176
181
  c
177
- pid
182
+ require_relative "command/publish_url/root"
183
+ Dir.pwd
184
+ c
185
+ require_relative "command/publish_url/root"
186
+ Dir.pwd
187
+ c
188
+ ::Skytap::Cap
189
+ ::Cap
190
+ Skytap::Cap
191
+ Cap::SSHTunnel
192
+ Dir.pwd
193
+ pwd
194
+ require_relative "hosts/darwin/cap/ssh_tunnel"
195
+ finish
196
+ cap_name
197
+ cap_nae
198
+ caps.keys
199
+ caps
200
+ c 170
178
201
  n
202
+ s
179
203
  c
180
- pid
204
+ $!
205
+ n
206
+ cap_name
181
207
  s
182
- pid
208
+ @env[:host].capability(:start_ssh_tunnel, port)
209
+ c
210
+ @env[:host].capability(:start_ssh_tunnel, port)
211
+ c
212
+ @env[:host]
213
+ @env[:host].capabilities
214
+ @env[:host].capability
215
+ port
216
+ @env[:host].capability(:start_ssh_tunnel, port)
217
+ c
218
+ @env[:host].capability(:start_ssh_tunnel)
219
+ @env[:host].capability(:foo)
220
+ @env[:host].capability
221
+ @env[:host]
222
+ @env.keys
223
+ c
224
+ puts $!.backtrace
225
+ $!
226
+ c
183
227
  s
228
+ port
229
+ c 87
230
+ c 85
231
+ n
232
+ interface.vpn_nat_addresses
184
233
  n
234
+ fp
185
235
  s
236
+ ap interfaces.collect(&:attrs)
237
+ ap interfaces
238
+ require 'ap'
239
+ ap interfaces
186
240
  n
187
- c
188
- cmd
241
+ s
189
242
  n
190
- exit
191
- Net::SSH.start(vm_hostname, vm_username, keys: [keyfile]){|ssh| ssh.forward.local(8080, vm_hostname, 80) and ssh.loop { false } }
192
- require 'net/ssh'
193
- require 'net-ssh'
194
- Net::SSH.start(vm_hostname, vm_username, keys: [keyfile]){|ssh| ssh.forward.local(8080, vm_hostname, 80) and ssh.loop { false } }
195
- Net::SSH.start(vm_hostname, vm_username, keys: [keyfile]){|ssh| ssh.forward.local(8080, vm_hostname, 80) ; ssh.loop { false } }
196
- keyfile = "#{@env[:machine].data_dir}/private_key"
197
- vm_hostname
198
- vm_username=VmProperties.new(@env[:machine].data_dir).properties['username']
199
- VmProperties.new(@env[:machine].data_dir).properties['username']
200
- props.properties['username']
201
- props['username']
202
- props.username
203
- props=VmProperties.new(@env[:machine].data_dir)
204
- props=VmProperties(@env[:machine].data_dir)
205
- VmProperties
206
- vm_username = @env[:environment].current_vm.properties['username']
207
- vm_hostname = 'vm1'
208
- Net::SSH.start(vm_hostname, vm_username, keys: [keyfile]){|ssh| ssh.forward.local(8080, vm_hostname, 80) ; ssh.loop { true } }
209
- "#{@env[:machine].data_dir}/private_key"
210
- @env[:machine].data_dir
211
- @env[:machine].local_dir
212
- @env[:machine].machine_dir
213
- @env[:machine].private_key
214
- @env[:machine].id
215
243
  c
244
+ ChildProcess
216
245
  q
217
- $ARGV
218
- $ARGC
219
- c
220
- $ARGV
221
- $ARGC
222
- ssh.host = '10.1.132.143'
223
- ssh.host
224
- ssh.host_name
225
- ssh.port
226
- ap ssh
227
- require 'ap'
228
- ssh
229
- c
230
- ports.count
231
- ports
232
- c
233
- interfaces.first.vpn_nat_addresses.present?
234
- interfaces.first.nat_addresses
235
- interfaces.first.network_nat_addresses
236
- interfaces.first.vpn_nat_addresses
237
- interfaces.vpn_nat_addresses
238
- interfaces.nat_addresses
239
- interfaces.first.attrs
240
- interfaces.first.type
241
- n
242
- c
243
- interfaces.count
244
- interfaces[fp.adapter]
245
- interfaces.shift
246
- interfaces[fp.adapter]
247
- interfaces.count
248
- interfaces.unshift
249
- interfaces[fp.adapter]
250
- interfaces.count
251
- fp
252
- fp.adapter
253
246
  c
254
- @env[:environment].current_vm.interfaces.count
255
- @env[:environment].current_vm.interfaces
256
- l
247
+ finish
248
+ @env.active_machines.collect(&:last).uniq.count > 1
249
+ @env.active_machines.collect(&:last).uniq
250
+ @env.active_machines.collect(&:last)
251
+ @env.active_machines
252
+ name
253
+ n
254
+ entry
255
+ @env.machine_names
256
+ finish