capistrano-rails-collection 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: faacac9b230f09061f35e00fe376e59d17a9698b
4
+ data.tar.gz: 5b0c893cde1d277d1788e45948a14a725f616943
5
+ SHA512:
6
+ metadata.gz: 36e7d4001e331fe03cd3d2c20448c7d1675804905387bbb1bb2b40a10ea956d09e2a50c0e7754592d67e07261d7721126df3f61360ddbc26bacaebf543142cb9
7
+ data.tar.gz: e0b8355ca0d71e6da8e2424e0f4f068c58b8abe6e6de3250c6bce7a1de0381dc5d1901a8fd152a0d5e3dc6eab3055cd140cc10d62075a4404a4f031610bcad28
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .idea
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-rails-collection.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 dei79
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Capistrano::Rails::Collection
2
+
3
+ Rails specific task collection for Capistrano v3 as extension of the official capistrano rails gem:
4
+
5
+ * cap deploy:seed
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'capistrano-rails-collection'
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ ## Usage
18
+
19
+ Require everything (bundler, rails/assets, rails/migrations and rails/collection)
20
+
21
+ ```ruby
22
+ # Capfile
23
+ require 'capistrano/rails'
24
+ require 'capistrano/rails/collection'
25
+ ```
26
+
27
+ Please note that any require should be placed in Capfile, not config/deploy.rb.
28
+
29
+ ## Contributing
30
+
31
+ 1. Fork it
32
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
33
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
34
+ 4. Push to the branch (`git push origin my-new-feature`)
35
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano/rails/collection/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "capistrano-rails-collection"
8
+ spec.version = Capistrano::Rails::Collection::VERSION
9
+ spec.authors = ["dei79"]
10
+ spec.email = ["dirk.eisenberg@gmail.com"]
11
+ spec.description = %q{Rails specific Capistrano tasks which are not part of the official rails gem}
12
+ spec.summary = %q{Rails specific Capistrano tasks which are not part of the official rails gem}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'capistrano-rails', '~> 1.1.0'
22
+ end
File without changes
@@ -0,0 +1,6 @@
1
+ require 'capistrano/bundler'
2
+ require 'capistrano/rails'
3
+
4
+ require "capistrano/rails/collection/version"
5
+ require "capistrano/rails/collection/db"
6
+
@@ -0,0 +1 @@
1
+ load File.expand_path("../../../tasks/db.rake", __FILE__)
@@ -0,0 +1,7 @@
1
+ module Capistrano
2
+ module Rails
3
+ module Collection
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ namespace :deploy do
2
+
3
+ desc 'Runs rake db:seed (call it manually)'
4
+ task :seed do
5
+ on primary fetch(:migration_role) do
6
+ within release_path do
7
+ with rails_env: fetch(:rails_env) do
8
+ execute :rake, 'db:seed'
9
+ end
10
+ end
11
+ end
12
+ end
13
+
14
+ end
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-rails-collection
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - dei79
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano-rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.0
27
+ description: Rails specific Capistrano tasks which are not part of the official rails
28
+ gem
29
+ email:
30
+ - dirk.eisenberg@gmail.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - .gitignore
36
+ - Gemfile
37
+ - LICENSE.txt
38
+ - README.md
39
+ - Rakefile
40
+ - capistrano-rails-collection.gemspec
41
+ - lib/capistrano-rails-collection.rb
42
+ - lib/capistrano/rails/collection.rb
43
+ - lib/capistrano/rails/collection/db.rb
44
+ - lib/capistrano/rails/collection/version.rb
45
+ - lib/capistrano/tasks/db.rake
46
+ homepage: ''
47
+ licenses:
48
+ - MIT
49
+ metadata: {}
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubyforge_project:
66
+ rubygems_version: 2.1.11
67
+ signing_key:
68
+ specification_version: 4
69
+ summary: Rails specific Capistrano tasks which are not part of the official rails
70
+ gem
71
+ test_files: []
72
+ has_rdoc: