ruby-cute 0.7 → 0.8
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 +4 -4
- data/README.md +2 -2
- data/debian/changelog +6 -0
- data/lib/cute/g5k_api.rb +5 -3
- data/lib/cute/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2acaac41dc67e7a75c5cc474462d52de0ddbf4ee
|
|
4
|
+
data.tar.gz: 8885a0dcc7f8f08d69b0d7741d87ff921258f83c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0232075b595a4b306afdce03c0ff2f1392fc94a88fb35bfaa2f34cb8063e32e335f5fdb45e99ea2f0d7826c3c97ab5979a8156749ca00e09533c8c76884b1f9b
|
|
7
|
+
data.tar.gz: ea247362335367ad9c0d08b9542c7ba998010ec85027316b2e2bf0bb772782313a45e15db106b76fbeecabec8c259eea20630ce55dcf3e6c44a894d11770e46d
|
data/README.md
CHANGED
|
@@ -112,8 +112,8 @@ The following examples show how to use the [G5K Module](http://www.rubydoc.info/
|
|
|
112
112
|
#### Example 1: automatic experiment bootstrap
|
|
113
113
|
|
|
114
114
|
This example (also available as
|
|
115
|
-
[examples/xp-bootstrap](http://www.rubydoc.info/github/ruby-cute/ruby-cute/master/file/examples/xp-bootstrap)
|
|
116
|
-
is simple script automating the initial bootstrap of an experiment.
|
|
115
|
+
[examples/xp-bootstrap](http://www.rubydoc.info/github/ruby-cute/ruby-cute/master/file/examples/xp-bootstrap))
|
|
116
|
+
is a simple script automating the initial bootstrap of an experiment (deployment, software setup).
|
|
117
117
|
|
|
118
118
|
```ruby
|
|
119
119
|
#!/usr/bin/ruby -w
|
data/debian/changelog
CHANGED
data/lib/cute/g5k_api.rb
CHANGED
|
@@ -231,7 +231,7 @@ module Cute
|
|
|
231
231
|
return @api[path]
|
|
232
232
|
end
|
|
233
233
|
|
|
234
|
-
RETRY_503_MAX =
|
|
234
|
+
RETRY_503_MAX = 120
|
|
235
235
|
RETRY_503_SLEEP = 1
|
|
236
236
|
|
|
237
237
|
# @return [Hash] the HTTP response
|
|
@@ -1055,7 +1055,7 @@ module Cute
|
|
|
1055
1055
|
info "Reserving resources: #{resources} (type: #{type}) (in #{site})"
|
|
1056
1056
|
|
|
1057
1057
|
payload['properties'] = properties unless properties.nil?
|
|
1058
|
-
payload['
|
|
1058
|
+
payload['type'] = type.map{ |t| t.to_s} unless type.nil?
|
|
1059
1059
|
type.map!{|t| t.to_sym} unless type.nil?
|
|
1060
1060
|
payload['queue'] = queue if queue
|
|
1061
1061
|
|
|
@@ -1063,7 +1063,7 @@ module Cute
|
|
|
1063
1063
|
if opts[:keys]
|
|
1064
1064
|
payload['import-job-key-from-file'] = [ File.expand_path(keys) ]
|
|
1065
1065
|
else
|
|
1066
|
-
payload['
|
|
1066
|
+
payload['type'] += [ 'allow_classic_ssh' ]
|
|
1067
1067
|
end
|
|
1068
1068
|
end
|
|
1069
1069
|
|
|
@@ -1191,9 +1191,11 @@ module Cute
|
|
|
1191
1191
|
# @param job [G5KJSON] as described in {Cute::G5K::G5KJSON job}
|
|
1192
1192
|
# @param [Hash] opts Deploy options
|
|
1193
1193
|
# @option opts [String] :env {http://kadeploy3.gforge.inria.fr/ Kadeploy} environment to deploy
|
|
1194
|
+
# @option opts [String] :user User owning the Kadeploy environment
|
|
1194
1195
|
# @option opts [Array] :nodes Specifies the nodes to deploy on
|
|
1195
1196
|
# @option opts [String] :keys Specifies the SSH keys to copy for the deployment. By default, the content of ~/.ssh/id_rsa.pub is used.
|
|
1196
1197
|
# @option opts [Boolean] :wait Whether or not to wait until the deployment is done (default is false)
|
|
1198
|
+
# @option opts [Boolean] :vlan VLAN id (number) to use (default is none)
|
|
1197
1199
|
# @return [G5KJSON] a job with deploy information as described in {Cute::G5K::G5KJSON job}
|
|
1198
1200
|
def deploy(job, opts = {})
|
|
1199
1201
|
|
data/lib/cute/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-cute
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.8'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Algorille team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|