vagrant-nodemaster 0.0.1 → 0.0.2
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/LICENSE +14 -0
- data/Readme.md +0 -0
- data/lib/vagrant-nodemaster/requestcontroller.rb +14 -17
- data/lib/vagrant-nodemaster/version.rb +1 -1
- data/vagrant-nodemaster.gemspec +1 -1
- metadata +6 -4
data/LICENSE
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Copyright (C) Cátedra SAES-UMU 2013 <fjsanpedro@gmail.com>
|
2
|
+
|
3
|
+
VAGRANT-NODEMASTER is free software: you can redistribute it and/or modify it
|
4
|
+
under the terms of the GNU Lesser General Public License as published
|
5
|
+
by the Free Software Foundation, either version 3 of the License, or
|
6
|
+
(at your option) any later version.
|
7
|
+
|
8
|
+
VAGRANT-NODEMASTER is distributed in the hope that it will be useful, but
|
9
|
+
WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
11
|
+
See the GNU Lesser General Public License for more details.
|
12
|
+
|
13
|
+
You should have received a copy of the GNU Lesser General Public License
|
14
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
data/Readme.md
ADDED
File without changes
|
@@ -41,8 +41,8 @@ module Vagrant
|
|
41
41
|
|
42
42
|
def self.vm_up(host,vmname)
|
43
43
|
client=get_host_parameters(host)
|
44
|
-
#
|
45
|
-
#
|
44
|
+
#Due to the fact that starting the machines can take long,
|
45
|
+
#setting the request not to expire
|
46
46
|
resource = RestClient::Resource.new(
|
47
47
|
RouteManager.vm_up_url(client[:address],client[:port]),
|
48
48
|
:timeout => -1
|
@@ -56,8 +56,8 @@ module Vagrant
|
|
56
56
|
|
57
57
|
def self.vm_halt(host,vmname,force)
|
58
58
|
client=get_host_parameters(host)
|
59
|
-
#
|
60
|
-
#
|
59
|
+
#Due to the fact that halting the machines can take long,
|
60
|
+
#setting the request not to expire
|
61
61
|
resource = RestClient::Resource.new(
|
62
62
|
RouteManager.vm_halt_url(client[:address],client[:port]),
|
63
63
|
:timeout => -1
|
@@ -87,11 +87,7 @@ module Vagrant
|
|
87
87
|
def self.vm_status(host,vmname)
|
88
88
|
client=get_host_parameters(host)
|
89
89
|
|
90
|
-
get_vm_status(client[:address],client[:port],vmname)
|
91
|
-
|
92
|
-
# response = RestClient.get RouteManager.vm_status_url(client[:address],client[:port],vmname)
|
93
|
-
#
|
94
|
-
# return JSON.parse(response.to_str)
|
90
|
+
get_vm_status(client[:address],client[:port],vmname)
|
95
91
|
|
96
92
|
end
|
97
93
|
|
@@ -110,8 +106,8 @@ module Vagrant
|
|
110
106
|
|
111
107
|
def self.vm_suspend(host,vmname)
|
112
108
|
client=get_host_parameters(host)
|
113
|
-
#
|
114
|
-
#
|
109
|
+
#Due to the fact that suspending the machines can take long,
|
110
|
+
#setting the request not to expire
|
115
111
|
resource = RestClient::Resource.new(
|
116
112
|
RouteManager.vm_suspend_url(client[:address],client[:port]),
|
117
113
|
:timeout => -1
|
@@ -125,8 +121,8 @@ module Vagrant
|
|
125
121
|
|
126
122
|
def self.vm_resume(host,vmname)
|
127
123
|
client=get_host_parameters(host)
|
128
|
-
#
|
129
|
-
#
|
124
|
+
#Due to the fact that resuming the machines can take long,
|
125
|
+
#setting the request not to expire
|
130
126
|
resource = RestClient::Resource.new(
|
131
127
|
RouteManager.vm_resume_url(client[:address],client[:port]),
|
132
128
|
:timeout => -1
|
@@ -141,8 +137,8 @@ module Vagrant
|
|
141
137
|
|
142
138
|
def self.vm_provision(host,vmname)
|
143
139
|
client=get_host_parameters(host)
|
144
|
-
#
|
145
|
-
#
|
140
|
+
#Due to the fact that provisioning the machines can take long,
|
141
|
+
#setting the request not to expire
|
146
142
|
resource = RestClient::Resource.new(
|
147
143
|
RouteManager.vm_provision_url(client[:address],client[:port]),
|
148
144
|
:timeout => -1
|
@@ -167,7 +163,9 @@ module Vagrant
|
|
167
163
|
end
|
168
164
|
|
169
165
|
def self.vm_snapshot_take(host,vmname,sname,sdesc)
|
170
|
-
client=get_host_parameters(host)
|
166
|
+
client=get_host_parameters(host)
|
167
|
+
#Due to the fact that taking the snapshot can take long,
|
168
|
+
#setting the request not to expire
|
171
169
|
resource = RestClient::Resource.new(
|
172
170
|
RouteManager.vm_snapshot_take_url(client[:address],client[:port],vmname),
|
173
171
|
:timeout => -1
|
@@ -341,4 +339,3 @@ module Vagrant
|
|
341
339
|
end
|
342
340
|
end
|
343
341
|
|
344
|
-
|
data/vagrant-nodemaster.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Vagrant::NodeMaster::VERSION
|
9
9
|
spec.authors = ["Francisco Javier Lopez de San Pedro"]
|
10
10
|
spec.email = ["fjsanpedro@gmail.com"]
|
11
|
-
spec.description = "
|
11
|
+
spec.description = "This Vagrant plugin allows you to control centralizely remote virtual environments configured with vagrant-node"
|
12
12
|
spec.summary = "Escribir summary"
|
13
13
|
spec.homepage = "http://www.catedrasaes.org"
|
14
14
|
spec.license = "GNU"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-nodemaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Francisco Javier Lopez de San Pedro
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
version: "0"
|
75
75
|
type: :development
|
76
76
|
version_requirements: *id004
|
77
|
-
description:
|
77
|
+
description: This Vagrant plugin allows you to control centralizely remote virtual environments configured with vagrant-node
|
78
78
|
email:
|
79
79
|
- fjsanpedro@gmail.com
|
80
80
|
executables: []
|
@@ -86,7 +86,9 @@ extra_rdoc_files: []
|
|
86
86
|
files:
|
87
87
|
- .gitignore
|
88
88
|
- Gemfile
|
89
|
+
- LICENSE
|
89
90
|
- Rakefile
|
91
|
+
- Readme.md
|
90
92
|
- lib/vagrant-nodemaster.rb
|
91
93
|
- lib/vagrant-nodemaster/apidesc.rb
|
92
94
|
- lib/vagrant-nodemaster/node/nodeadd.rb
|