gosen 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/gosen/deployment_run.rb +1 -1
- metadata +3 -5
- data/README.html +0 -64
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/gosen/deployment_run.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Pierre Riteau
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-26 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -79,7 +79,6 @@ extensions: []
|
|
79
79
|
|
80
80
|
extra_rdoc_files:
|
81
81
|
- LICENSE
|
82
|
-
- README.html
|
83
82
|
- README.md
|
84
83
|
files:
|
85
84
|
- .document
|
@@ -96,7 +95,6 @@ files:
|
|
96
95
|
- test/gosen/test_deployment_run.rb
|
97
96
|
- test/helper.rb
|
98
97
|
- test/test_gosen.rb
|
99
|
-
- README.html
|
100
98
|
has_rdoc: true
|
101
99
|
homepage: http://github.com/priteau/gosen
|
102
100
|
licenses: []
|
data/README.html
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
<h1>Gosen</h1>
|
2
|
-
|
3
|
-
<p>Gosen is a Ruby library for the <a href="https://api.grid5000.fr/">Grid'5000 RESTful API</a>.
|
4
|
-
It relies on the <a href="http://github.com/crohr/restfully">Restfully library</a> for interacting with the API.</p>
|
5
|
-
|
6
|
-
<h2>Features</h2>
|
7
|
-
|
8
|
-
<p>Currently, it allows to submit deployments that retry automatically when too many nodes failed, similarly to <a href="http://www.loria.fr/~lnussbau/katapult.html">Katapult</a>.</p>
|
9
|
-
|
10
|
-
<h2>Installation</h2>
|
11
|
-
|
12
|
-
<pre><code>$ gem install gosen
|
13
|
-
</code></pre>
|
14
|
-
|
15
|
-
<h2>Usage</h2>
|
16
|
-
|
17
|
-
<p>The following example deploys the latest version of the Lenny-x64-big environment on the paramount-1 and paramount-2 nodes.
|
18
|
-
If both nodes are not successfully deployed, Gosen retries again (in this case, at most 5 deployment are submitted).</p>
|
19
|
-
|
20
|
-
<pre><code>#!/usr/bin/env ruby
|
21
|
-
|
22
|
-
require 'gosen'
|
23
|
-
require 'logger'
|
24
|
-
require 'restfully'
|
25
|
-
|
26
|
-
logger = Logger.new(STDOUT)
|
27
|
-
|
28
|
-
Restfully::Session.new(:configuration_file => '~/.grid5000') do |grid, session|
|
29
|
-
site = grid.sites[:rennes]
|
30
|
-
nodes = [ 'paramount-1.rennes.grid5000.fr', 'paramount-2.rennes.grid5000.fr' ]
|
31
|
-
deployment = Gosen::Deployment.new(site, 'lenny-x64-big', nodes,
|
32
|
-
{
|
33
|
-
:logger => logger,
|
34
|
-
:max_deploy_runs => 5,
|
35
|
-
:min_deployed_nodes => nodes.length,
|
36
|
-
:ssh_public_key => File.read(File.expand_path('~/.ssh/authorized_keys'))
|
37
|
-
})
|
38
|
-
deployment.join
|
39
|
-
end
|
40
|
-
</code></pre>
|
41
|
-
|
42
|
-
<p>The logger allows to print information about the deployment, in a style similar to Katapult:</p>
|
43
|
-
|
44
|
-
<pre><code>I, [2010-04-21T11:31:09.351803 #21673] INFO -- : Kadeploy run 1 with 2 nodes (0 already deployed, need 2 more)
|
45
|
-
I, [2010-04-21T11:37:11.817323 #21673] INFO -- : Nodes deployed: paramount-1.rennes.grid5000.fr paramount-2.rennes.grid5000.fr
|
46
|
-
I, [2010-04-21T11:37:11.817440 #21673] INFO -- : Had to run 1 kadeploy runs, deployed 2 nodes
|
47
|
-
</code></pre>
|
48
|
-
|
49
|
-
<h2>Note on Patches/Pull Requests</h2>
|
50
|
-
|
51
|
-
<ul>
|
52
|
-
<li>Fork the project.</li>
|
53
|
-
<li>Make your feature addition or bug fix.</li>
|
54
|
-
<li>Add tests for it. This is important so I don't break it in a
|
55
|
-
future version unintentionally.</li>
|
56
|
-
<li>Commit, do not mess with rakefile, version, or history.
|
57
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)</li>
|
58
|
-
<li>Send me a pull request. Bonus points for topic branches.</li>
|
59
|
-
</ul>
|
60
|
-
|
61
|
-
|
62
|
-
<h2>Copyright</h2>
|
63
|
-
|
64
|
-
<p>Copyright (c) 2010 Pierre Riteau. See LICENSE for details.</p>
|