judo 0.5.1 → 0.5.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -12,7 +12,7 @@ require 'tempfile'
12
12
  class JudoError < RuntimeError ; end
13
13
  class JudoInvalid < RuntimeError ; end
14
14
 
15
- require File.dirname(__File__) + '/judo/util'
15
+ require File.dirname(__FILE__) + '/judo/util'
16
16
  require File.dirname(__FILE__) + '/judo/base'
17
17
  require File.dirname(__FILE__) + '/judo/group'
18
18
  require File.dirname(__FILE__) + '/judo/server'
@@ -54,7 +54,7 @@ module Judo
54
54
  userdata = File.read("#{name}/userdata.erb")
55
55
  tar = tar_file(@version)
56
56
  puts ""
57
- Util.system_comfirmed "tar czvf #{tar} #{name}"
57
+ Util.system_confirmed "tar czvf #{tar} #{name}"
58
58
  puts "Uploading config to s3..."
59
59
  @base.s3_put(version_config_file(@version), conf.to_json)
60
60
  puts "Uploading userdata.erb to s3..."
@@ -501,6 +501,13 @@ module Judo
501
501
  end
502
502
 
503
503
  def ssh_command(cmd)
504
+ wait_for_ssh
505
+ @base.keypair_file do |file|
506
+ Kernel.system "ssh -q -i #{file} #{config["user"]}@#{hostname} '#{cmd}'"
507
+ end
508
+ end
509
+
510
+ def ssh_command!(cmd)
504
511
  wait_for_ssh
505
512
  @base.keypair_file do |file|
506
513
  Util.system_confirmed "ssh -q -i #{file} #{config["user"]}@#{hostname} '#{cmd}'"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
8
+ - 2
9
+ version: 0.5.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Orion Henry