gusteau 0.4.0 → 0.4.1

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.
@@ -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)
@@ -1,5 +1,11 @@
1
1
  #!/usr/bin/expect -f
2
2
 
3
+ trap {
4
+ set rows [stty rows]
5
+ set cols [stty columns]
6
+ stty rows $rows columns $cols < $spawn_out(slave,name)
7
+ } WINCH
8
+
3
9
  set ssh_string [lrange $argv 0 0]
4
10
  set port [lrange $argv 1 1]
5
11
  set password [lrange $argv 2 2]
@@ -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'])
@@ -1,3 +1,3 @@
1
1
  module Gusteau
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-06 00:00:00.000000000 Z
13
+ date: 2013-02-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: optitron