judo 0.4.2 → 0.4.3

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/judo/group.rb +7 -6
  3. data/lib/judo/server.rb +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -50,16 +50,17 @@ module Judo
50
50
  raise JudoError, "can not find group folder #{dir}" unless File.exists?(dir)
51
51
  conf = JSON.parse(read_file('config.json'))
52
52
  raise JudoError, "config option 'import' no longer supported" if conf["import"]
53
+ tar = tar_file(@version)
53
54
  Dir.chdir(@base.repo) do |d|
54
55
  puts ""
55
- system "tar czvf #{tar_file} #{name}"
56
+ system "tar czvf #{tar} #{name}"
56
57
  puts "Uploading config to s3..."
57
58
  @base.s3_put(version_config_file(@version), conf.to_json)
58
59
  puts "Uploading userdata.erb to s3..."
59
60
  @base.s3_put(version_userdata_file(@version), read_file('userdata.erb'))
60
61
  puts "Uploading tar file to s3..."
61
- @base.s3_put(tar_file, File.new(tar_file).read(File.stat(tar_file).size))
62
- File.delete(tar_file)
62
+ @base.s3_put(tar, File.new(tar).read(File.stat(tar).size))
63
+ File.delete(tar)
63
64
  end
64
65
  set_version
65
66
  end
@@ -73,12 +74,12 @@ module Judo
73
74
  "#{name}.#{version}.erb"
74
75
  end
75
76
 
76
- def tar_file
77
+ def tar_file(version)
77
78
  "#{name}.#{version}.tar.gz"
78
79
  end
79
80
 
80
- def s3_url
81
- @url = @base.s3_url(tar_file)
81
+ def s3_url(version)
82
+ @url = @base.s3_url(tar_file(version))
82
83
  end
83
84
 
84
85
 
@@ -350,7 +350,7 @@ module Judo
350
350
 
351
351
  def restart(options = {})
352
352
  stop(options) if running?
353
- start
353
+ start(options)
354
354
  end
355
355
 
356
356
  def generic_name?
@@ -565,7 +565,7 @@ module Judo
565
565
  end
566
566
 
567
567
  def url
568
- group.s3_url
568
+ group.s3_url(version)
569
569
  end
570
570
 
571
571
  def domain
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 2
9
- version: 0.4.2
8
+ - 3
9
+ version: 0.4.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Orion Henry