chicken_soup 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -11
- data/lib/chicken_soup/capabilities/unix.rb +15 -6
- data/lib/chicken_soup/version.rb +1 -1
- data/lib/chicken_stock.rb +3 -0
- metadata +15 -18
- data/lib/chicken_soup.rb +0 -7
data/README.md
CHANGED
@@ -1,17 +1,7 @@
|
|
1
1
|
Chicken Soup... for the Deployment Soul
|
2
2
|
================================
|
3
3
|
|
4
|
-
|
5
|
-
------
|
6
|
-
Add `require 'chicken_soup'` to your deploy.rb file.
|
7
|
-
|
8
|
-
Assumptions
|
9
|
-
------
|
10
|
-
You're deploying with RVM
|
11
|
-
You have a `db:backup` task (link to mine)
|
12
|
-
You have a `db:seed` task (link to mine)
|
13
|
-
You have a `db:samplize` task (link to mine)
|
14
|
-
You have a non-priviledged `deployment` user and a priviledged `manager` user. The `manager` user has sudo capabilities.
|
4
|
+
TODO
|
15
5
|
|
16
6
|
Issues
|
17
7
|
------
|
@@ -9,20 +9,29 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
9
9
|
desc <<-DESC
|
10
10
|
Creates the directory where the `symlink` task will look for its configuration files.
|
11
11
|
|
12
|
-
It will first look in the
|
13
|
-
a file of the same name as one of the shared files
|
14
|
-
|
15
|
-
|
12
|
+
It will first look in the local Rails directory to see if there is
|
13
|
+
a file of the same name as one of the shared files with the deployment environment
|
14
|
+
appended on the end.
|
15
|
+
|
16
|
+
For example, if you had `config/database.yml` as one of your global_shared_files and
|
17
|
+
you were deploying to the `staging` environment, this task will look for:
|
18
|
+
|
19
|
+
#{Rails.root}/config/database.yml.staging
|
20
|
+
|
21
|
+
If it finds it, it will upload the file to the shared directory on the server.
|
22
|
+
|
23
|
+
If it doesn't find it, it will check to see if the remote file exists and finally,
|
24
|
+
if not, it will just create an empty file.
|
16
25
|
DESC
|
17
26
|
task :create do
|
18
27
|
run "if [ ! -d #{shared_path}/config ]; then mkdir -p #{shared_path}/config; fi"
|
19
28
|
|
20
29
|
global_shared_files.each do |shared_file|
|
21
|
-
local_shared_file = "#{shared_file}.#{rails_env}"
|
30
|
+
local_shared_file = "#{Dir.pwd}/#{shared_file}.#{rails_env}"
|
22
31
|
|
23
32
|
if File.exists?(local_shared_file)
|
24
33
|
top.upload(local_shared_file, "#{shared_path}/#{shared_file}", :mode => "600")
|
25
|
-
|
34
|
+
elsif !remote_file_exists?("#{shared_path}/#{shared_file}")
|
26
35
|
run "touch #{shared_path}/#{shared_file}"
|
27
36
|
end
|
28
37
|
end
|
data/lib/chicken_soup/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chicken_soup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.2
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- thekompanee
|
@@ -11,31 +10,29 @@ autorequire:
|
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
12
|
|
14
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-27 00:00:00 -06:00
|
15
14
|
default_executable:
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: capistrano
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
type: :runtime
|
19
|
+
version_requirement:
|
20
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
21
|
requirements:
|
23
22
|
- - ~>
|
24
23
|
- !ruby/object:Gem::Version
|
25
24
|
version: 2.5.19
|
26
|
-
|
27
|
-
version_requirements: *id001
|
25
|
+
version:
|
28
26
|
- !ruby/object:Gem::Dependency
|
29
27
|
name: bundler
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
type: :development
|
29
|
+
version_requirement:
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
31
|
requirements:
|
34
32
|
- - ~>
|
35
33
|
- !ruby/object:Gem::Version
|
36
34
|
version: 1.0.10
|
37
|
-
|
38
|
-
version_requirements: *id002
|
35
|
+
version:
|
39
36
|
description: ...for the Deployment Soul. Why do you keep typing all that crap into your Capistrano recipes? Are you too cool for standards? Well, ARE YA!?
|
40
37
|
email: support@thekompanee.com
|
41
38
|
executables: []
|
@@ -52,7 +49,6 @@ files:
|
|
52
49
|
- README.md
|
53
50
|
- Rakefile
|
54
51
|
- chicken_soup.gemspec
|
55
|
-
- lib/chicken_soup.rb
|
56
52
|
- lib/chicken_soup/capabilities/apache.rb
|
57
53
|
- lib/chicken_soup/capabilities/bundler.rb
|
58
54
|
- lib/chicken_soup/capabilities/git.rb
|
@@ -70,6 +66,7 @@ files:
|
|
70
66
|
- lib/chicken_soup/environment/defaults.rb
|
71
67
|
- lib/chicken_soup/global.rb
|
72
68
|
- lib/chicken_soup/version.rb
|
69
|
+
- lib/chicken_stock.rb
|
73
70
|
has_rdoc: true
|
74
71
|
homepage: http://github.com/jfelchner/chicken_soup
|
75
72
|
licenses: []
|
@@ -80,23 +77,23 @@ rdoc_options:
|
|
80
77
|
require_paths:
|
81
78
|
- lib
|
82
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
80
|
requirements:
|
85
81
|
- - ">="
|
86
82
|
- !ruby/object:Gem::Version
|
87
83
|
version: "0"
|
84
|
+
version:
|
88
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
86
|
requirements:
|
91
87
|
- - ">="
|
92
88
|
- !ruby/object:Gem::Version
|
93
89
|
version: "0"
|
90
|
+
version:
|
94
91
|
requirements: []
|
95
92
|
|
96
93
|
rubyforge_project: chicken_soup
|
97
|
-
rubygems_version: 1.5
|
94
|
+
rubygems_version: 1.3.5
|
98
95
|
signing_key:
|
99
96
|
specification_version: 3
|
100
|
-
summary: chicken_soup-0.0.
|
97
|
+
summary: chicken_soup-0.0.3
|
101
98
|
test_files: []
|
102
99
|
|