kuzushi 0.0.37 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/kuzushi.rb +17 -10
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.37
1
+ 0.0.38
@@ -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 process_service(service)
118
- put_file(service_file(service), "/etc/init/#{service.name}.conf")
119
- shell "service #{service.name} start"
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
- FileUtils.mkdir_p(f.dir)
317
- shell "cd dir && git init"
318
- shell "cd dir && git remote add origin #{f.git}"
319
- shell "cd dir && git fetch"
320
- shell "cd dir && git checkout master"
321
- shell "chown -R #{f.user}:#{f.group} #{f.dir}" if f.user || f.group ## is this needed? handled above in files?
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...
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 37
9
- version: 0.0.37
8
+ - 38
9
+ version: 0.0.38
10
10
  platform: ruby
11
11
  authors:
12
12
  - Orion Henry