ruby-cute 0.7 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c25c70220c9af96769ac92522d76cb09ee237846
4
- data.tar.gz: 98596abba4e8569122cf00369fafc0b7ea8eefb1
3
+ metadata.gz: 2acaac41dc67e7a75c5cc474462d52de0ddbf4ee
4
+ data.tar.gz: 8885a0dcc7f8f08d69b0d7741d87ff921258f83c
5
5
  SHA512:
6
- metadata.gz: 305140e82df29d420897496719de4a71554a10ea7c9f32c90dd8c956576c7c374c6b2e57cac4daa685775631e85a6e6c23954d9686d83d4ccb3a5aa48cac459e
7
- data.tar.gz: ae3e6bdb53792be17caeb8ee67824d4c61cb7f64ad15b29e74c099bc60a5ede6993d4051d1854e4b5826d356b1c16bf60d3679baa9ba5cee005afc18b23cb39f
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
@@ -1,3 +1,9 @@
1
+ ruby-cute (0.8) unstable; urgency=medium
2
+
3
+ * New release.
4
+
5
+ -- Lucas Nussbaum <lucas@debian.org> Tue, 20 Jun 2017 09:22:12 +0200
6
+
1
7
  ruby-cute (0.6) unstable; urgency=medium
2
8
 
3
9
  * New release.
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 = 10
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['types'] = type.map{ |t| t.to_s} unless type.nil?
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['types'] = [ 'allow_classic_ssh' ]
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
@@ -1,3 +1,3 @@
1
1
  module Cute
2
- VERSION = "0.7"
2
+ VERSION = "0.8"
3
3
  end
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.7'
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-03-17 00:00:00.000000000 Z
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler