kuzushi 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/kuzushi +1 -1
  3. data/lib/kuzushi.rb +10 -1
  4. metadata +30 -17
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.27
1
+ 0.0.28
@@ -4,7 +4,7 @@ require File.dirname(__FILE__) + '/../lib/kuzushi'
4
4
 
5
5
  usage = "usage: kuzushi start URL"
6
6
 
7
- fail(usage) unless ARGV.length == 2
7
+ fail(usage) unless [2].include? ARGV.length
8
8
 
9
9
  kuzushi = Kuzushi.new(ARGV[1])
10
10
 
@@ -16,8 +16,11 @@ class Kuzushi
16
16
  attr_accessor :config, :config_names
17
17
 
18
18
  def initialize(url)
19
+ @url = url
19
20
  @base_url = File.dirname(url)
20
- @name = File.basename(url)
21
+ if @url =~ /s3.amazonaws.com.*\/([^\/]*).tar.gz/
22
+ @name = $1
23
+ end
21
24
  @config_names = []
22
25
  @configs = []
23
26
  @packages = []
@@ -29,6 +32,12 @@ class Kuzushi
29
32
  start
30
33
  end
31
34
 
35
+ def boot
36
+ "mkdir -p /tmp/kuzushi/"
37
+ "cd /tmp/kuzushi/ ; curl '#{@url}' | tar xzvf"
38
+ @config = JSON.parse(File.read("/tmp/kuzushi/#{@name}/config.json"))
39
+ end
40
+
32
41
  def start
33
42
  load_config_stack(@name)
34
43
  process_stack
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuzushi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 28
9
+ version: 0.0.28
5
10
  platform: ruby
6
11
  authors:
7
12
  - Orion Henry
@@ -9,39 +14,45 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-03-02 00:00:00 -08:00
17
+ date: 2010-03-09 00:00:00 -05:00
13
18
  default_executable: kuzushi
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rest-client
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
23
29
  version: "0"
24
- version:
30
+ type: :runtime
31
+ version_requirements: *id001
25
32
  - !ruby/object:Gem::Dependency
26
33
  name: json
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
39
+ segments:
40
+ - 0
33
41
  version: "0"
34
- version:
42
+ type: :runtime
43
+ version_requirements: *id002
35
44
  - !ruby/object:Gem::Dependency
36
45
  name: ohai
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
46
+ prerelease: false
47
+ requirement: &id003 !ruby/object:Gem::Requirement
40
48
  requirements:
41
49
  - - ">="
42
50
  - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
43
53
  version: "0"
44
- version:
54
+ type: :runtime
55
+ version_requirements: *id003
45
56
  description: A tool used by the sumo gem for performing instance setup and management in AWS
46
57
  email: orion@heroku.com
47
58
  executables:
@@ -71,18 +82,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
82
  requirements:
72
83
  - - ">="
73
84
  - !ruby/object:Gem::Version
85
+ segments:
86
+ - 0
74
87
  version: "0"
75
- version:
76
88
  required_rubygems_version: !ruby/object:Gem::Requirement
77
89
  requirements:
78
90
  - - ">="
79
91
  - !ruby/object:Gem::Version
92
+ segments:
93
+ - 0
80
94
  version: "0"
81
- version:
82
95
  requirements: []
83
96
 
84
97
  rubyforge_project:
85
- rubygems_version: 1.3.5
98
+ rubygems_version: 1.3.6
86
99
  signing_key:
87
100
  specification_version: 3
88
101
  summary: A tool used by the sumo gem for performing instance setup and management in AWS