vagrant-skytap 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.project +11 -0
  3. data/CHANGELOG.md +4 -0
  4. data/LICENSE +2 -1
  5. data/README.md +7 -0
  6. data/lib/vagrant-skytap/action/action_helpers.rb +35 -0
  7. data/lib/vagrant-skytap/action/add_vm_to_environment.rb +22 -0
  8. data/lib/vagrant-skytap/action/clear_forwarded_ports.rb +22 -0
  9. data/lib/vagrant-skytap/action/compose_environment.rb +22 -0
  10. data/lib/vagrant-skytap/action/create_environment.rb +22 -0
  11. data/lib/vagrant-skytap/action/delete_environment.rb +22 -0
  12. data/lib/vagrant-skytap/action/delete_vm.rb +26 -1
  13. data/lib/vagrant-skytap/action/existence_check.rb +26 -1
  14. data/lib/vagrant-skytap/action/fetch_environment.rb +22 -0
  15. data/lib/vagrant-skytap/action/forward_ports.rb +22 -0
  16. data/lib/vagrant-skytap/action/initial_state.rb +22 -0
  17. data/lib/vagrant-skytap/action/initialize_api_client.rb +22 -0
  18. data/lib/vagrant-skytap/action/is_parallelized.rb +22 -0
  19. data/lib/vagrant-skytap/action/is_running.rb +22 -0
  20. data/lib/vagrant-skytap/action/is_stopped.rb +22 -0
  21. data/lib/vagrant-skytap/action/is_suspended.rb +22 -0
  22. data/lib/vagrant-skytap/action/message_already_created.rb +22 -0
  23. data/lib/vagrant-skytap/action/message_already_running.rb +22 -0
  24. data/lib/vagrant-skytap/action/message_environment_url.rb +22 -0
  25. data/lib/vagrant-skytap/action/message_not_created.rb +22 -0
  26. data/lib/vagrant-skytap/action/message_resuming.rb +22 -0
  27. data/lib/vagrant-skytap/action/message_will_not_destroy.rb +22 -0
  28. data/lib/vagrant-skytap/action/mixin_machine_index.rb +22 -0
  29. data/lib/vagrant-skytap/action/prepare_forwarded_port_collision_params.rb +22 -0
  30. data/lib/vagrant-skytap/action/prepare_nfs_settings.rb +22 -0
  31. data/lib/vagrant-skytap/action/prepare_nfs_valid_ids.rb +22 -0
  32. data/lib/vagrant-skytap/action/read_ssh_info.rb +22 -0
  33. data/lib/vagrant-skytap/action/read_state.rb +27 -2
  34. data/lib/vagrant-skytap/action/run_environment.rb +26 -1
  35. data/lib/vagrant-skytap/action/run_vm.rb +25 -1
  36. data/lib/vagrant-skytap/action/set_hostname.rb +26 -1
  37. data/lib/vagrant-skytap/action/set_up_vm.rb +22 -0
  38. data/lib/vagrant-skytap/action/stop_environment.rb +22 -0
  39. data/lib/vagrant-skytap/action/stop_vm.rb +26 -1
  40. data/lib/vagrant-skytap/action/store_extra_data.rb +22 -0
  41. data/lib/vagrant-skytap/action/suspend_environment.rb +22 -0
  42. data/lib/vagrant-skytap/action/suspend_vm.rb +26 -1
  43. data/lib/vagrant-skytap/action/timed_provision.rb +22 -0
  44. data/lib/vagrant-skytap/action/update_hardware.rb +29 -4
  45. data/lib/vagrant-skytap/action/wait_for_communicator.rb +22 -0
  46. data/lib/vagrant-skytap/action.rb +22 -0
  47. data/lib/vagrant-skytap/api/busyable.rb +22 -0
  48. data/lib/vagrant-skytap/api/client.rb +22 -0
  49. data/lib/vagrant-skytap/api/credentials.rb +22 -0
  50. data/lib/vagrant-skytap/api/environment.rb +22 -5
  51. data/lib/vagrant-skytap/api/interface.rb +22 -0
  52. data/lib/vagrant-skytap/api/network.rb +22 -0
  53. data/lib/vagrant-skytap/api/public_ip.rb +22 -0
  54. data/lib/vagrant-skytap/api/publish_set.rb +22 -0
  55. data/lib/vagrant-skytap/api/published_service.rb +22 -0
  56. data/lib/vagrant-skytap/api/resource.rb +22 -0
  57. data/lib/vagrant-skytap/api/runstate_operations.rb +22 -0
  58. data/lib/vagrant-skytap/api/specified_attributes.rb +22 -0
  59. data/lib/vagrant-skytap/api/vm.rb +22 -18
  60. data/lib/vagrant-skytap/api/vpn.rb +22 -0
  61. data/lib/vagrant-skytap/api/vpn_attachment.rb +22 -0
  62. data/lib/vagrant-skytap/cap/public_address.rb +22 -0
  63. data/lib/vagrant-skytap/command/helpers.rb +22 -0
  64. data/lib/vagrant-skytap/command/publish_url/create.rb +22 -0
  65. data/lib/vagrant-skytap/command/publish_url/delete.rb +22 -0
  66. data/lib/vagrant-skytap/command/publish_url/root.rb +22 -0
  67. data/lib/vagrant-skytap/command/publish_url/show.rb +22 -0
  68. data/lib/vagrant-skytap/command/up.rb +22 -0
  69. data/lib/vagrant-skytap/config.rb +22 -0
  70. data/lib/vagrant-skytap/core_ext/object/blank.rb +22 -0
  71. data/lib/vagrant-skytap/core_ext/object/tap.rb +22 -0
  72. data/lib/vagrant-skytap/core_ext/try.rb +22 -0
  73. data/lib/vagrant-skytap/environment_properties.rb +22 -0
  74. data/lib/vagrant-skytap/errors.rb +22 -0
  75. data/lib/vagrant-skytap/hosts/bsd/cap/ssh_tunnel.rb +22 -0
  76. data/lib/vagrant-skytap/hosts/common/cap/ssh_tunnel.rb +22 -0
  77. data/lib/vagrant-skytap/hosts/linux/cap/ssh_tunnel.rb +22 -0
  78. data/lib/vagrant-skytap/hosts/windows/cap/ssh_tunnel.rb +22 -0
  79. data/lib/vagrant-skytap/model/forwarded_port.rb +22 -0
  80. data/lib/vagrant-skytap/plugin.rb +22 -0
  81. data/lib/vagrant-skytap/properties.rb +22 -0
  82. data/lib/vagrant-skytap/provider.rb +22 -0
  83. data/lib/vagrant-skytap/setup_helper.rb +25 -1
  84. data/lib/vagrant-skytap/util/compile_forwarded_ports.rb +22 -0
  85. data/lib/vagrant-skytap/util/ip_address.rb +22 -0
  86. data/lib/vagrant-skytap/util/subnet.rb +22 -0
  87. data/lib/vagrant-skytap/util/timer.rb +22 -0
  88. data/lib/vagrant-skytap/version.rb +23 -1
  89. data/lib/vagrant-skytap/vm_properties.rb +22 -0
  90. data/lib/vagrant-skytap.rb +22 -0
  91. data/spec/acceptance/base.rb +22 -0
  92. data/spec/acceptance/provider/halt_spec.rb +22 -0
  93. data/spec/acceptance/provider/up_spec.rb +22 -0
  94. data/spec/acceptance/shared/context_skytap.rb +22 -0
  95. data/spec/spec_helper.rb +22 -0
  96. data/spec/support/isolated_environment.rb +22 -0
  97. data/spec/unit/actions/compose_environment_spec.rb +22 -0
  98. data/spec/unit/actions/update_hardware_spec.rb +75 -0
  99. data/spec/unit/base.rb +22 -0
  100. data/spec/unit/config_spec.rb +22 -0
  101. data/spec/unit/environment_spec.rb +22 -0
  102. data/spec/unit/forwarded_port_spec.rb +22 -0
  103. data/spec/unit/hosts/common/cap/ssh_tunnel_spec.rb +22 -0
  104. data/spec/unit/prepare_collision_params_spec.rb +22 -0
  105. data/spec/unit/publish_set_spec.rb +22 -0
  106. data/spec/unit/setup_helper_spec.rb +22 -0
  107. data/spec/unit/support/dummy_communicator.rb +22 -0
  108. data/spec/unit/support/dummy_provider.rb +22 -0
  109. data/spec/unit/support/isolated_environment.rb +22 -0
  110. data/spec/unit/support/shared/action_synced_folders_context.rb +22 -0
  111. data/spec/unit/support/shared/base_context.rb +22 -0
  112. data/spec/unit/support/shared/capability_helpers_context.rb +22 -0
  113. data/spec/unit/support/shared/plugin_command_context.rb +22 -0
  114. data/spec/unit/support/shared/rest_api_context.rb +22 -0
  115. data/spec/unit/support/shared/skytap_context.rb +22 -0
  116. data/spec/unit/vm_spec.rb +22 -0
  117. data/vagrant-skytap.gemspec +25 -3
  118. data/vagrant-spec.config.rb +22 -0
  119. metadata +7 -7
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require File.expand_path("../../base", __FILE__)
2
24
 
3
25
  describe VagrantPlugins::Skytap::Action::ComposeEnvironment do
@@ -0,0 +1,75 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
23
+ require File.expand_path("../../base", __FILE__)
24
+ require "vagrant-skytap/action/update_hardware"
25
+
26
+ describe VagrantPlugins::Skytap::Action::UpdateHardware do
27
+ include_context "unit"
28
+ include_context "skytap"
29
+
30
+ let(:app) { lambda { |env| } }
31
+ let(:env) { { machine: machine, machines: [machine], environment: environment} }
32
+
33
+ let(:machine) { double(:machine, name: "vm1", id: nil, provider_config: provider_config) }
34
+ let(:provider_config) { double(:provider_config, cpus: 4, cpuspersocket: 2, ram: 1024, guestos: "linux") }
35
+ let(:environment) { double(:environment) }
36
+ let(:vm) { double(:vm, hardware: {'cpus' => 1, 'cpus_per_socket' => 1, 'ram' => 1024, 'guestOS' => 'other'}) }
37
+
38
+ let(:subject) { described_class.new(app, env) }
39
+
40
+ describe "#call" do
41
+ it "filters out unchanged hardware properties" do
42
+ allow(subject).to receive(:current_vm).and_return(vm)
43
+ expect(vm).to receive(:update_with_retry).with(hardware: {cpus: 4, cpus_per_socket: 2, guestOS: "linux"})
44
+ subject.call(env)
45
+ end
46
+ end
47
+
48
+ describe "current_vm" do
49
+ it "returns nil if environment does not exist" do
50
+ myenv = env.merge(environment: nil)
51
+ subject = described_class.new(app, myenv)
52
+ expect(subject.current_vm(myenv)).to be nil
53
+ subject.call(myenv)
54
+ end
55
+
56
+ it "returns nil if no such vm exists" do
57
+ expect(environment).to receive(:get_vms_by_id).once.and_return([])
58
+ subject = described_class.new(app, env)
59
+ expect(subject.current_vm(env)).to be(nil)
60
+ end
61
+
62
+ it "returns nil if machine is nil for some reason" do
63
+ expect(environment).to_not receive(:get_vms_by_id)
64
+ myenv = env.merge(machine: nil)
65
+ subject = described_class.new(app, myenv)
66
+ expect(subject.current_vm(myenv)).to be nil
67
+ end
68
+
69
+ it "returns the vm if found" do
70
+ expect(environment).to receive(:get_vms_by_id).once.and_return([vm])
71
+ subject = described_class.new(nil, env)
72
+ expect(subject.current_vm(env)).to be(vm)
73
+ end
74
+ end
75
+ end
data/spec/unit/base.rb CHANGED
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require "tmpdir"
2
24
  require "rubygems"
3
25
 
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require "vagrant-skytap/config"
2
24
 
3
25
  describe VagrantPlugins::Skytap::Config do
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require_relative 'base'
2
24
 
3
25
  describe VagrantPlugins::Skytap::API::Environment do
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require_relative 'base'
2
24
  require "vagrant-skytap/model/forwarded_port"
3
25
 
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require File.expand_path("../../../../base", __FILE__)
2
24
  require "vagrant-skytap/model/forwarded_port"
3
25
 
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require_relative 'base'
2
24
  require "vagrant-skytap/model/forwarded_port"
3
25
 
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require_relative 'base'
2
24
 
3
25
  describe VagrantPlugins::Skytap::API::PublishSet do
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require_relative 'base'
2
24
  require "vagrant-skytap/setup_helper"
3
25
  require "vagrant-skytap/api/environment"
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  module VagrantTests
2
24
  module DummyCommunicator
3
25
  class Communicator < Vagrant.plugin("2", :communicator)
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  module VagrantTests
2
24
  class DummyProviderPlugin < Vagrant.plugin("2")
3
25
  name "Dummy Provider"
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require "fileutils"
2
24
  require "pathname"
3
25
  require "tempfile"
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  shared_context "synced folder actions" do
2
24
  # This creates a synced folder implementation.
3
25
  def impl(usable, name)
@@ -1,3 +1,25 @@
1
+ # Copyright (c) 2014-2016 Skytap, Inc.
2
+ #
3
+ # The MIT License (MIT)
4
+ #
5
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ # of this software and associated documentation files (the "Software"), to deal
7
+ # in the Software without restriction, including without limitation the rights
8
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ # copies of the Software, and to permit persons to whom the Software is
10
+ # furnished to do so, subject to the following conditions:
11
+ #
12
+ # The above copyright notice and this permission notice shall be included in
13
+ # all copies or substantial portions of the Software.
14
+ #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ # DEALINGS IN THE SOFTWARE.
22
+
1
23
  require "tempfile"
2
24
  require "tmpdir"
3
25