capsum 0.8.1 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -1
- data/VERSION +1 -1
- data/capsum.gemspec +3 -3
- data/lib/capsum/foundation.rb +1 -0
- data/lib/capsum/setup.rb +18 -0
- metadata +9 -8
data/README.md
CHANGED
@@ -14,7 +14,8 @@
|
|
14
14
|
|
15
15
|
set :application, "portal"
|
16
16
|
set :shared, %w{
|
17
|
-
config/
|
17
|
+
config/database.yml
|
18
|
+
config/settings.local.rb
|
18
19
|
}
|
19
20
|
|
20
21
|
|
@@ -22,6 +23,7 @@
|
|
22
23
|
|
23
24
|
set :deploy_to, "/var/www/starcloud/apps/#{application}"
|
24
25
|
|
26
|
+
set :rails_env, "production"
|
25
27
|
set :user, "www-data"
|
26
28
|
server "foo.bar.com", :app, :web, :db, :primary => true
|
27
29
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.4
|
data/capsum.gemspec
CHANGED
@@ -17,11 +17,11 @@ Gem::Specification.new do |s|
|
|
17
17
|
|
18
18
|
|
19
19
|
# Dependency Gems
|
20
|
-
s.add_dependency "capistrano", "~> 2.
|
21
|
-
s.add_dependency "capistrano_colors", "~> 0.5.
|
20
|
+
s.add_dependency "capistrano", "~> 2.13.5"
|
21
|
+
s.add_dependency "capistrano_colors", "~> 0.5.5"
|
22
22
|
s.add_dependency "capistrano-helpers", "~> 0.7.1"
|
23
23
|
# s.add_dependency "cap-recipes", "~> 0.3.36"
|
24
|
-
#
|
24
|
+
# https://github.com/rubaidh/rubaidhstrano
|
25
25
|
# https://github.com/relevance/cap_gun
|
26
26
|
# https://github.com/railsmachine/capistrano-cowboy
|
27
27
|
# https://github.com/fnichol/capstrap
|
data/lib/capsum/foundation.rb
CHANGED
data/lib/capsum/setup.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require File.expand_path("../../capsum.rb", __FILE__)
|
2
|
+
|
3
|
+
Capistrano::Configuration.instance(true).load do
|
4
|
+
namespace :capsum do
|
5
|
+
desc 'upload example files to server on deploy:setup'
|
6
|
+
task :setup do
|
7
|
+
Dir["**/*.example", "**/*.sample"].each do |source|
|
8
|
+
target_dir = File.join(shared_path, File.dirname(source))
|
9
|
+
target_file = File.basename(source, ".*")
|
10
|
+
|
11
|
+
run "mkdir -p '#{target_dir}'"
|
12
|
+
top.upload(source, File.join(target_dir, target_file))
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
after "deploy:setup", "capsum:setup"
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capsum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.13.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.13.5
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: capistrano_colors
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.5.
|
37
|
+
version: 0.5.5
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.5.
|
45
|
+
version: 0.5.5
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: capistrano-helpers
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/capsum/foundation.rb
|
129
129
|
- lib/capsum/git.rb
|
130
130
|
- lib/capsum/passenger.rb
|
131
|
+
- lib/capsum/setup.rb
|
131
132
|
- lib/capsum/shared.rb
|
132
133
|
- lib/capsum/typical.rb
|
133
134
|
- lib/capsum/typical3.rb
|
@@ -146,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
147
|
version: '0'
|
147
148
|
segments:
|
148
149
|
- 0
|
149
|
-
hash:
|
150
|
+
hash: -3372872539964782842
|
150
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
152
|
none: false
|
152
153
|
requirements:
|
@@ -155,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
156
|
version: '0'
|
156
157
|
segments:
|
157
158
|
- 0
|
158
|
-
hash:
|
159
|
+
hash: -3372872539964782842
|
159
160
|
requirements: []
|
160
161
|
rubyforge_project:
|
161
162
|
rubygems_version: 1.8.24
|