capistrano-templates 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'capistrano'
4
+ gem 'captify'
5
+ gem 'rvm-capistrano'
6
+ gem 'capistrano-helpers'
7
+ gem 'capistrano_colors'
8
+ gem 'capistrano-ssh-helpers'
9
+ gem 'capistrano-shared-helpers'
10
+
11
+ group :development do
12
+ gem "rdoc", "~> 3.12"
13
+ gem "bundler", "~> 1.0.0"
14
+ gem "jeweler", "~> 1.8.3"
15
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,87 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (3.2.5)
5
+ i18n (~> 0.6)
6
+ multi_json (~> 1.0)
7
+ addressable (2.2.8)
8
+ capistrano (2.12.0)
9
+ highline
10
+ net-scp (>= 1.0.0)
11
+ net-sftp (>= 2.0.0)
12
+ net-ssh (>= 2.0.14)
13
+ net-ssh-gateway (>= 1.1.0)
14
+ capistrano-helpers (0.7.1)
15
+ capistrano
16
+ git
17
+ tinder
18
+ capistrano-shared-helpers (1.0.0)
19
+ capistrano-ssh-helpers (1.0.0)
20
+ capistrano
21
+ capistrano_colors (0.5.5)
22
+ captify (0.1.1)
23
+ capistrano
24
+ eventmachine (0.12.10)
25
+ faraday (0.7.6)
26
+ addressable (~> 2.2)
27
+ multipart-post (~> 1.1)
28
+ rack (~> 1.1)
29
+ faraday_middleware (0.7.0)
30
+ faraday (~> 0.7.3)
31
+ git (1.2.5)
32
+ hashie (1.2.0)
33
+ highline (1.6.12)
34
+ http_parser.rb (0.5.3)
35
+ i18n (0.6.0)
36
+ jeweler (1.8.3)
37
+ bundler (~> 1.0)
38
+ git (>= 1.2.5)
39
+ rake
40
+ rdoc
41
+ json (1.7.3)
42
+ mime-types (1.18)
43
+ multi_json (1.3.6)
44
+ multipart-post (1.1.5)
45
+ net-scp (1.0.4)
46
+ net-ssh (>= 1.99.1)
47
+ net-sftp (2.0.5)
48
+ net-ssh (>= 2.0.9)
49
+ net-ssh (2.5.2)
50
+ net-ssh-gateway (1.1.0)
51
+ net-ssh (>= 1.99.1)
52
+ rack (1.4.1)
53
+ rake (0.9.2.2)
54
+ rdoc (3.12)
55
+ json (~> 1.4)
56
+ rvm-capistrano (1.2.2)
57
+ capistrano (>= 2.0.0)
58
+ simple_oauth (0.1.8)
59
+ tinder (1.8.0)
60
+ activesupport (>= 2.3, < 4)
61
+ eventmachine (~> 0.12)
62
+ faraday (>= 0.6, < 0.8)
63
+ faraday_middleware (>= 0.6, < 0.8)
64
+ hashie (~> 1.0)
65
+ mime-types (~> 1.16)
66
+ multi_json (~> 1.0)
67
+ multipart-post (~> 1.1)
68
+ twitter-stream (~> 0.1)
69
+ twitter-stream (0.1.15)
70
+ eventmachine (>= 0.12.8)
71
+ http_parser.rb (~> 0.5.1)
72
+ simple_oauth (~> 0.1.4)
73
+
74
+ PLATFORMS
75
+ ruby
76
+
77
+ DEPENDENCIES
78
+ bundler (~> 1.0.0)
79
+ capistrano
80
+ capistrano-helpers
81
+ capistrano-shared-helpers
82
+ capistrano-ssh-helpers
83
+ capistrano_colors
84
+ captify
85
+ jeweler (~> 1.8.3)
86
+ rdoc (~> 3.12)
87
+ rvm-capistrano
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Huiming Teo
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,38 @@
1
+ = capistrano-templates
2
+
3
+ == Install
4
+ gem install capistrano-templates # default template is stored in this gem
5
+
6
+ For bundler, add this to your Gemfile:
7
+
8
+ gem 'capistrano-templates'
9
+
10
+ == Usage
11
+ cd my_project
12
+ captify . # use default template: rails-basic
13
+
14
+ It will:
15
+
16
+ 1. Run capify.
17
+ 2. Overwrite Capistrano files with default template: rails-basic
18
+
19
+ To use a different template:
20
+
21
+ cd my_project
22
+ T=sinatra-basic captify .
23
+
24
+ == Contributing to capistrano-templates
25
+
26
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
27
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
28
+ * Fork the project.
29
+ * Start a feature/bugfix branch.
30
+ * Commit and push until you are happy with your contribution.
31
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
32
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
33
+
34
+ == Copyright
35
+
36
+ Copyright (c) 2012 Huiming Teo. See LICENSE.txt for
37
+ further details.
38
+
data/Rakefile ADDED
@@ -0,0 +1,38 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "capistrano-templates"
18
+ gem.homepage = "http://github.com/teohm/capistrano-templates"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{A collection of commonly used Capistrano templates.}
21
+ gem.description = %Q{A collection of commonly used Capistrano templates.}
22
+ gem.email = "teohuiming@gmail.com"
23
+ gem.authors = ["Huiming Teo"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ task :default => :test
29
+
30
+ require 'rdoc/task'
31
+ Rake::RDocTask.new do |rdoc|
32
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
33
+
34
+ rdoc.rdoc_dir = 'rdoc'
35
+ rdoc.title = "capistrano-templates #{version}"
36
+ rdoc.rdoc_files.include('README*')
37
+ rdoc.rdoc_files.include('lib/**/*.rb')
38
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,78 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "capistrano-templates"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Huiming Teo"]
12
+ s.date = "2012-06-06"
13
+ s.description = "A collection of commonly used Capistrano templates."
14
+ s.email = "teohuiming@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "capistrano-templates.gemspec",
28
+ "lib/template.rb",
29
+ "templates/rails-basic/config/deploy.rb",
30
+ "templates/rails-basic/config/deploy/production.rb",
31
+ "templates/rails-basic/config/deploy/staging.rb"
32
+ ]
33
+ s.homepage = "http://github.com/teohm/capistrano-templates"
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "1.8.24"
37
+ s.summary = "A collection of commonly used Capistrano templates."
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_runtime_dependency(%q<capistrano>, [">= 0"])
44
+ s.add_runtime_dependency(%q<captify>, [">= 0"])
45
+ s.add_runtime_dependency(%q<rvm-capistrano>, [">= 0"])
46
+ s.add_runtime_dependency(%q<capistrano-helpers>, [">= 0"])
47
+ s.add_runtime_dependency(%q<capistrano_colors>, [">= 0"])
48
+ s.add_runtime_dependency(%q<capistrano-ssh-helpers>, [">= 0"])
49
+ s.add_runtime_dependency(%q<capistrano-shared-helpers>, [">= 0"])
50
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
51
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
52
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
53
+ else
54
+ s.add_dependency(%q<capistrano>, [">= 0"])
55
+ s.add_dependency(%q<captify>, [">= 0"])
56
+ s.add_dependency(%q<rvm-capistrano>, [">= 0"])
57
+ s.add_dependency(%q<capistrano-helpers>, [">= 0"])
58
+ s.add_dependency(%q<capistrano_colors>, [">= 0"])
59
+ s.add_dependency(%q<capistrano-ssh-helpers>, [">= 0"])
60
+ s.add_dependency(%q<capistrano-shared-helpers>, [">= 0"])
61
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
62
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
63
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
64
+ end
65
+ else
66
+ s.add_dependency(%q<capistrano>, [">= 0"])
67
+ s.add_dependency(%q<captify>, [">= 0"])
68
+ s.add_dependency(%q<rvm-capistrano>, [">= 0"])
69
+ s.add_dependency(%q<capistrano-helpers>, [">= 0"])
70
+ s.add_dependency(%q<capistrano_colors>, [">= 0"])
71
+ s.add_dependency(%q<capistrano-ssh-helpers>, [">= 0"])
72
+ s.add_dependency(%q<capistrano-shared-helpers>, [">= 0"])
73
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
74
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
75
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
76
+ end
77
+ end
78
+
data/lib/template.rb ADDED
@@ -0,0 +1,5 @@
1
+ require 'captify/template'
2
+
3
+ class Template < Captify::Template
4
+
5
+ end
@@ -0,0 +1,55 @@
1
+ # Fill in your info
2
+ # ========
3
+ set :application, "set your application name here"
4
+ set :repository, "set your repository location here"
5
+ server "set remote host here", :web, :app, :db, :primary => true
6
+ set :deploy_to, "/home/deployer/#{application}"
7
+ set :shared, %w()
8
+ set :privates, %w(config/database.yml)
9
+
10
+
11
+ # Coloring
12
+ # ========
13
+ require 'capistrano_colors'
14
+
15
+ # Multistage
16
+ # ==========
17
+ set :stages, %w(staging production)
18
+ set :default_stage, 'staging'
19
+ require 'capistrano/ext/multistage'
20
+
21
+ # Code Repository
22
+ # =========
23
+ set :scm, :git
24
+ set :scm_verbose, true
25
+ set :deploy_via, :remote_cache
26
+
27
+ # Remote Server
28
+ # =============
29
+ set :use_sudo, false
30
+ ssh_options[:forward_agent] = true
31
+ require 'capistrano-ssh-helpers'
32
+
33
+ # RVM
34
+ # ---
35
+ set :rvm_ruby_string, "default"
36
+ require 'rvm/capistrano'
37
+
38
+ # Bundler
39
+ # -------
40
+ require 'bundler/capistrano'
41
+
42
+ # Shared Paths/Files
43
+ # ------------------
44
+ require 'capistrano-helpers/shared'
45
+ require 'capistrano-helpers/privates'
46
+ require 'capistrano-shared-helpers'
47
+
48
+ # Restart
49
+ # -------
50
+ require 'capistrano-helpers/passenger'
51
+
52
+ # Rails: Asset Pipeline
53
+ # ---------------------
54
+ load 'deploy/assets'
55
+
@@ -0,0 +1,2 @@
1
+ #server "set remote host here", :web, :app, :db, :primary => true
2
+ #set :deploy_to, "/home/deployer/#{application}"
@@ -0,0 +1,2 @@
1
+ #server "set remote host here", :web, :app, :db, :primary => true
2
+ #set :deploy_to, "/home/deployer/#{application}"
metadata ADDED
@@ -0,0 +1,222 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-templates
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Huiming Teo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: capistrano
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: captify
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: rvm-capistrano
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: capistrano-helpers
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: capistrano_colors
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: capistrano-ssh-helpers
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: capistrano-shared-helpers
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: rdoc
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: '3.12'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '3.12'
142
+ - !ruby/object:Gem::Dependency
143
+ name: bundler
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 1.0.0
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 1.0.0
158
+ - !ruby/object:Gem::Dependency
159
+ name: jeweler
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 1.8.3
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 1.8.3
174
+ description: A collection of commonly used Capistrano templates.
175
+ email: teohuiming@gmail.com
176
+ executables: []
177
+ extensions: []
178
+ extra_rdoc_files:
179
+ - LICENSE.txt
180
+ - README.rdoc
181
+ files:
182
+ - .document
183
+ - Gemfile
184
+ - Gemfile.lock
185
+ - LICENSE.txt
186
+ - README.rdoc
187
+ - Rakefile
188
+ - VERSION
189
+ - capistrano-templates.gemspec
190
+ - lib/template.rb
191
+ - templates/rails-basic/config/deploy.rb
192
+ - templates/rails-basic/config/deploy/production.rb
193
+ - templates/rails-basic/config/deploy/staging.rb
194
+ homepage: http://github.com/teohm/capistrano-templates
195
+ licenses:
196
+ - MIT
197
+ post_install_message:
198
+ rdoc_options: []
199
+ require_paths:
200
+ - lib
201
+ required_ruby_version: !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ! '>='
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ segments:
208
+ - 0
209
+ hash: -1102494202514461043
210
+ required_rubygems_version: !ruby/object:Gem::Requirement
211
+ none: false
212
+ requirements:
213
+ - - ! '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ requirements: []
217
+ rubyforge_project:
218
+ rubygems_version: 1.8.24
219
+ signing_key:
220
+ specification_version: 3
221
+ summary: A collection of commonly used Capistrano templates.
222
+ test_files: []