kuzushi 0.0.37 → 0.0.38
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 +1 -1
- data/lib/kuzushi.rb +17 -10
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.38
|
data/lib/kuzushi.rb
CHANGED
@@ -15,6 +15,9 @@ require 'erb'
|
|
15
15
|
class Kuzushi
|
16
16
|
attr_accessor :config
|
17
17
|
|
18
|
+
def self.version
|
19
|
+
end
|
20
|
+
|
18
21
|
def initialize(url)
|
19
22
|
@url = url
|
20
23
|
@base_url = File.dirname(url)
|
@@ -74,9 +77,9 @@ class Kuzushi
|
|
74
77
|
process :gems
|
75
78
|
process :volumes
|
76
79
|
process :files
|
77
|
-
process :services
|
78
80
|
process :users
|
79
81
|
process :crontab
|
82
|
+
process :services
|
80
83
|
|
81
84
|
script get("after")
|
82
85
|
script get("init") if init?
|
@@ -114,9 +117,11 @@ class Kuzushi
|
|
114
117
|
end
|
115
118
|
end
|
116
119
|
|
117
|
-
def
|
118
|
-
|
119
|
-
|
120
|
+
def process_services(service)
|
121
|
+
task "installing service #{service.name}" do
|
122
|
+
put_file(service_file(service), "/etc/init/#{service.name}.conf")
|
123
|
+
shell "service #{service.name} start"
|
124
|
+
end
|
120
125
|
end
|
121
126
|
|
122
127
|
def process_packages
|
@@ -313,12 +318,14 @@ class Kuzushi
|
|
313
318
|
end
|
314
319
|
|
315
320
|
def git_fetch(f)
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
321
|
+
task "install packages" do
|
322
|
+
FileUtils.mkdir_p(f.file)
|
323
|
+
shell "cd #{f.file} && git init"
|
324
|
+
shell "cd #{f.file} && git remote add origin #{f.git}"
|
325
|
+
shell "cd #{f.file} && git fetch"
|
326
|
+
shell "cd #{f.file} && git checkout master"
|
327
|
+
shell "chown -R #{f.user}:#{f.group} #{f.dir}" if f.user || f.group ## is this needed? handled above in files?
|
328
|
+
end
|
322
329
|
end
|
323
330
|
|
324
331
|
### this needs to be brought up to date - way last version - no need to read and filter...
|