gusteau 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/gusteau +9 -0
- data/bin/gusteau_ssh_expect +6 -0
- data/lib/gusteau/node.rb +1 -2
- data/lib/gusteau/version.rb +1 -1
- metadata +2 -2
data/bin/gusteau
CHANGED
@@ -28,6 +28,15 @@ class Gusteau::CLI < Optitron::CLI
|
|
28
28
|
node(node_name).ssh
|
29
29
|
end
|
30
30
|
|
31
|
+
desc 'Generate an SSH config from nodes/'
|
32
|
+
def ssh_config
|
33
|
+
nodes_list.each do |name|
|
34
|
+
node = node(name)
|
35
|
+
puts node.name
|
36
|
+
puts node.server.host
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
31
40
|
desc 'Generate an example project (a bureau)'
|
32
41
|
def generate(bureau_name)
|
33
42
|
Gusteau::Bureau.new(bureau_name)
|
data/bin/gusteau_ssh_expect
CHANGED
data/lib/gusteau/node.rb
CHANGED
@@ -6,7 +6,7 @@ require 'gusteau/chef'
|
|
6
6
|
|
7
7
|
module Gusteau
|
8
8
|
class Node
|
9
|
-
attr_reader :server
|
9
|
+
attr_reader :name, :server
|
10
10
|
|
11
11
|
def initialize(path)
|
12
12
|
raise "Node YAML file #{path} not found" unless path && File.exists?(path)
|
@@ -36,7 +36,6 @@ module Gusteau
|
|
36
36
|
node_dna = {
|
37
37
|
:path => @dna_path,
|
38
38
|
:hash => {
|
39
|
-
:name => @name,
|
40
39
|
:instance_role => @name,
|
41
40
|
:run_list => run_list(include_all, recipes)
|
42
41
|
}.merge(@config['json'])
|
data/lib/gusteau/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gusteau
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02-
|
13
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: optitron
|