silver_spurs 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,9 +35,11 @@ module SilverSpurs
35
35
  }.merge options
36
36
 
37
37
  arguments = expand_bootstrap_args bootstrap_options
38
+ logger.debug "Knife arguments: #{arguments.join ', '}"
38
39
 
39
40
  strap_r, strap_w = IO.pipe
40
41
 
42
+ logger.debug "Knife command line: #{['knife', 'bootstrap', *arguments, ip].join ' '}"
41
43
  knife_pid = spawn('knife', 'bootstrap', *arguments, ip, :err => :out, :out => strap_w)
42
44
 
43
45
  Process.waitpid(knife_pid)
@@ -45,6 +47,7 @@ module SilverSpurs
45
47
 
46
48
  strap_w.close
47
49
  loglines = strap_r.read
50
+ logger.debug "Knife log lines: #{loglines}"
48
51
  strap_r.close
49
52
 
50
53
  {
@@ -53,5 +56,9 @@ module SilverSpurs
53
56
  }
54
57
  end
55
58
 
59
+ def self.logger
60
+ @logger ||= Logger.new(STDERR)
61
+ end
62
+
56
63
  end
57
64
  end
@@ -1,3 +1,3 @@
1
1
  module SilverSpurs
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: silver_spurs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-13 00:00:00.000000000 Z
12
+ date: 2013-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra