kuzushi 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/kuzushi.rb +7 -5
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.29
|
data/lib/kuzushi.rb
CHANGED
@@ -18,8 +18,9 @@ class Kuzushi
|
|
18
18
|
def initialize(url)
|
19
19
|
@url = url
|
20
20
|
@base_url = File.dirname(url)
|
21
|
-
if @url =~ /s3.amazonaws.com.*\/([^\/]*).tar.gz/
|
21
|
+
if @url =~ /s3.amazonaws.com.*\/([^\/]*).(\d+).tar.gz/
|
22
22
|
@name = $1
|
23
|
+
@version = $2
|
23
24
|
end
|
24
25
|
@config_names = []
|
25
26
|
@configs = []
|
@@ -33,14 +34,15 @@ class Kuzushi
|
|
33
34
|
end
|
34
35
|
|
35
36
|
def boot
|
36
|
-
"mkdir -p /tmp/kuzushi/"
|
37
|
-
"cd /tmp/kuzushi/ ; curl '#{@url}' | tar
|
37
|
+
shell "mkdir -p /tmp/kuzushi/"
|
38
|
+
shell "cd /tmp/kuzushi/ ; curl --silent '#{@url}' | tar xzv"
|
38
39
|
@config = JSON.parse(File.read("/tmp/kuzushi/#{@name}/config.json"))
|
40
|
+
@config_names = [ @name ]
|
39
41
|
end
|
40
42
|
|
41
43
|
def start
|
42
|
-
load_config_stack(@name)
|
43
|
-
process_stack
|
44
|
+
# load_config_stack(@name)
|
45
|
+
# process_stack
|
44
46
|
log "----"
|
45
47
|
@tasks.each do |t|
|
46
48
|
log "TASK: #{t[:description]}"
|