capistrano-touch-linked-files 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3e5c1ad3ccf1ddd510eae2024d123d34b18c0c39
4
+ data.tar.gz: 7f04e0053650f043607566e365dcf670f6fbee3a
5
+ SHA512:
6
+ metadata.gz: 2083a75d371d93485212000a0e466caef84f4e1ca434e95ce1d4e3c61b27a4fb2ba8606701a549a840067f94e01dc065914f15186b04967a81a44ce6fcafa5c2
7
+ data.tar.gz: ddba1bcb2f00a5b221b8f2df540f3b8d347f75873beed8a84232cf65dd5bded37e4afc8c51dfd2995bf7e154cb40404c2938bfc8e82f2e60b4638c1107ebf745
data/.gitignore ADDED
@@ -0,0 +1,17 @@
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
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-touch-linked-files.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Robert Coleman
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,60 @@
1
+ # capistrano-touch-linked-files
2
+
3
+ Capistrano linked files are super handy however on first deploy you can end up with a chicken an egg problem -
4
+ can't deploy because the file doesn't exist, but the file is created after you've deployed. Oh no!
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'capistrano', '~> 3.1.0'
12
+ gem 'capistrano-touch-linked-files'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ `$ bundle`
18
+
19
+ Or install it yourself as:
20
+
21
+ `$ gem install capistrano-touch-linked-files`
22
+
23
+
24
+ ## Usage
25
+
26
+ Require the module in your `Capfile`:
27
+
28
+ ```ruby
29
+ require 'capistrano/touch-linked-files'
30
+ ```
31
+
32
+ `capistrano-touch-linked-files` comes with 1 task:
33
+
34
+ * `linked_files:touch`
35
+
36
+
37
+ #### linked_files:touch
38
+
39
+ Touches your `:linked_files`, so they'll be created if they don't exist:
40
+
41
+ ```shell
42
+ $ cap staging linked_files:touch
43
+ INFO Touched: shared/config/production.sphinx.conf
44
+ ```
45
+
46
+ This is automatically hooked into your Capistrano run `before 'deploy:check:linked_files'`
47
+
48
+
49
+ ### Configuration
50
+
51
+ There's none.
52
+
53
+
54
+ ## Contributing
55
+
56
+ 1. Fork it
57
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
58
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
59
+ 4. Push to the branch (`git push origin my-new-feature`)
60
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,24 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'capistrano-touch-linked-files'
7
+ spec.version = '0.1.0'
8
+ spec.authors = 'Robert Coleman'
9
+ spec.email = 'github@robert.net.nz'
10
+ spec.description = %q{Capistrano 3.x task to to touch all your linked files}
11
+ spec.summary = %q{Capistrano 3.x task to to touch all your linked files, useful on first deploy.}
12
+ spec.homepage = 'https://github.com/rjocoleman/capistrano-touch-linked-files'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_dependency 'capistrano', '>= 3.0'
21
+
22
+ spec.add_development_dependency 'bundler', '~> 1.5'
23
+ spec.add_development_dependency 'rake'
24
+ end
File without changes
@@ -0,0 +1,17 @@
1
+ namespace :linked_files do
2
+
3
+ desc 'Touches all your linked files'
4
+ task :touch do
5
+ on release_roles :all do
6
+ within shared_path do
7
+ fetch(:linked_files).each do |file|
8
+ execute :touch, file
9
+ info "Touched: #{file}"
10
+ end
11
+ end
12
+ end
13
+ end
14
+
15
+ before 'deploy:check:linked_files', 'linked_files:touch'
16
+
17
+ end
@@ -0,0 +1 @@
1
+ load File.expand_path('../tasks/touch-linked-files.rake', __FILE__)
metadata ADDED
@@ -0,0 +1,94 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-touch-linked-files
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Robert Coleman
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Capistrano 3.x task to to touch all your linked files
56
+ email: github@robert.net.nz
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - ".gitignore"
62
+ - Gemfile
63
+ - LICENSE.txt
64
+ - README.md
65
+ - Rakefile
66
+ - capistrano-touch-linked-files.gemspec
67
+ - lib/capistrano-touch-linked-files.rb
68
+ - lib/capistrano/tasks/touch-linked-files.rake
69
+ - lib/capistrano/touch-linked-files.rb
70
+ homepage: https://github.com/rjocoleman/capistrano-touch-linked-files
71
+ licenses:
72
+ - MIT
73
+ metadata: {}
74
+ post_install_message:
75
+ rdoc_options: []
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ required_rubygems_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ requirements: []
89
+ rubyforge_project:
90
+ rubygems_version: 2.2.2
91
+ signing_key:
92
+ specification_version: 4
93
+ summary: Capistrano 3.x task to to touch all your linked files, useful on first deploy.
94
+ test_files: []