daddy 0.3.20 → 0.3.21
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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/datepicker.css.scss +1 -1
- data/lib/daddy/version.rb +1 -1
- data/lib/tasks/task_helper.rb +2 -0
- data/lib/tasks/unicorn.rake +12 -19
- data/lib/tasks/{unicorn.erb → unicorn/unicorn.erb} +0 -0
- data/lib/tasks/{unicorn.rb.erb → unicorn/unicorn.rb.erb} +1 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a69facadf20ce56a143d6bf7df4d1f965334563e
|
4
|
+
data.tar.gz: 579f1a44d83f46cefd7a0de75d2c0d537d191e17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e0f4e7264fcb6ce60bc955375ef4cb0ba5ef9dd0aaadd6b8ef4a6440e0255e688ead5539fc7705bbdb25bf9c10fcba51719829c75e126974d6374ccbeee53d
|
7
|
+
data.tar.gz: 5b995517b3c8b63945109bc2544c90d6461c46a4125d2181b2008198840ec38122b010d3061709e83b61119ae6993769ec097abaad24b9c98f20737b40019344
|
data/lib/daddy/version.rb
CHANGED
data/lib/tasks/task_helper.rb
CHANGED
data/lib/tasks/unicorn.rake
CHANGED
@@ -1,28 +1,21 @@
|
|
1
|
-
|
1
|
+
require_relative 'task_helper'
|
2
2
|
|
3
3
|
namespace :dad do
|
4
4
|
namespace :unicorn do
|
5
5
|
|
6
|
-
desc 'Unicorn
|
7
|
-
task :
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
desc 'Unicornの設定を行います。'
|
7
|
+
task :config => :environment do
|
8
|
+
config = File.join('tmp', 'unicorn', 'unicorn.rb')
|
9
|
+
render File.join(File.dirname(__FILE__), 'unicorn', 'unicorn.rb.erb'), :to => config
|
10
|
+
run "cp -f #{config} config/"
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
"RAILS_ENV=#{rails_env} RAILS_ROOT=#{rails_root} erb -T - #{File.dirname(__FILE__)}/unicorn.rb.erb > config/unicorn.rb",
|
12
|
+
init_script = File.join('tmp', 'unicorn', "unicorn_#{app_name}")
|
13
|
+
render File.join(File.dirname(__FILE__), 'unicorn', 'unicorn.erb'), :to => init_script
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
]
|
21
|
-
|
22
|
-
commands.each do |c|
|
23
|
-
puts c
|
24
|
-
fail unless system(c)
|
25
|
-
end
|
15
|
+
run "sudo cp -f #{init_script} /etc/init.d/",
|
16
|
+
"sudo chown root:root /etc/init.d/#{File.basename(init_script)}",
|
17
|
+
"sudo chmod 755 /etc/init.d/#{File.basename(init_script)}",
|
18
|
+
"sudo /sbin/chkconfig #{File.basename(init_script)} on"
|
26
19
|
end
|
27
20
|
|
28
21
|
end
|
File without changes
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# coding: UTF-8
|
2
|
-
|
3
1
|
require 'yaml'
|
4
2
|
|
5
3
|
rails_root = "#{File.dirname(File.expand_path(__FILE__))}/.."
|
@@ -10,6 +8,7 @@ working_directory rails_root
|
|
10
8
|
|
11
9
|
database = YAML.load_file("#{File.dirname(__FILE__)}/database.yml")[rails_env]['database']
|
12
10
|
listen "/tmp/#{database}.sock"
|
11
|
+
timeout 300
|
13
12
|
|
14
13
|
stdout_path rails_root + '/log/unicorn.log'
|
15
14
|
stderr_path rails_root + '/log/unicorn.log'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -359,9 +359,9 @@ files:
|
|
359
359
|
- lib/tasks/task_helper.rb
|
360
360
|
- lib/tasks/tesseract.rake
|
361
361
|
- lib/tasks/test.rake
|
362
|
-
- lib/tasks/unicorn.erb
|
363
362
|
- lib/tasks/unicorn.rake
|
364
|
-
- lib/tasks/unicorn.
|
363
|
+
- lib/tasks/unicorn/unicorn.erb
|
364
|
+
- lib/tasks/unicorn/unicorn.rb.erb
|
365
365
|
- ssl/cert.pem
|
366
366
|
- templates/Gemfile.erb
|
367
367
|
- templates/app/controllers/controller.rb.erb
|