capistrano-gridserver 0.0.1
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 +15 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +50 -0
- data/Rakefile +1 -0
- data/capistrano-gridserver.gemspec +24 -0
- data/lib/capistrano-gridserver.rb +0 -0
- data/lib/capistrano/gridserver.rb +1 -0
- data/lib/capistrano/tasks/gridserver.rake +18 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MzI3Y2RlOWYyMGIzNWM3Mzk1NGI5ODU5NGIwNjkwODI3YjkwYzM5Ng==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZGZlNjM0YTlmNTAxNzdmYjMzZDcxYzJkMzM4ZDA3MDdmY2EwOWE5Mw==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MDI0MjA1ZDk3YmVkNzM5NjE1Y2JmNWExYjQxMDQ4MzY5YTI1ZWQ2ZGMxNWM3
|
10
|
+
Zjg2ZGNlYzkyOGY0ZjNmYzcxMjQxNjg2Yjk0ZjdlMWZjNzQzMTg3YzAzNTk5
|
11
|
+
NmEyZGMwYmNlMTJkNWUxZDcwYmFkYTFhMGM1OTMzZThhMGY5ODM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MTk5ODc2YmE5NTRkYjM4YTIyZjkyOWY2Y2U4ODNjNjMzYTlkOGZiZTZkZTg3
|
14
|
+
M2Q5MTI2NTNiYzgxOTExMTlmMDMxMWM0NzQwYmNmZDBiOTFmYzBhYmY1NjVk
|
15
|
+
YzM0YTg0MWE4ZDI0ZDg0Y2EyNzIzM2YxYjE5ZDkwMDNhZjczY2E=
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Craig Morris
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# Capistrano::GridServer
|
2
|
+
|
3
|
+
Fixes issues related to using Capistrano with MediaTemple's grid server
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'capistrano', '~> 3.1.0'
|
11
|
+
gem 'capistrano-gridserver'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install capistrano-gridserver
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
Require the module in your `Capfile`:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'capistrano/gridserver'
|
28
|
+
```
|
29
|
+
|
30
|
+
`capistrano/gridserver` comes with 1 task:
|
31
|
+
|
32
|
+
* gridserver:create_relative_symlink
|
33
|
+
|
34
|
+
To activate, simply hook the task to after the deploy:publishing hook (you may wish to do this per server so it is not hooked by default)
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
after 'deploy:publishing', 'gridserver:create_relative_symlink'
|
38
|
+
```
|
39
|
+
|
40
|
+
### Configuration
|
41
|
+
|
42
|
+
There are no configuration options. Let me know if you need some!
|
43
|
+
|
44
|
+
## Contributing
|
45
|
+
|
46
|
+
1. Fork it
|
47
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
48
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
49
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
50
|
+
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-gridserver'
|
7
|
+
spec.version = '0.0.1'
|
8
|
+
spec.authors = ['Craig Morris']
|
9
|
+
spec.email = ['craig.michael.morris@gmail.com']
|
10
|
+
spec.description = %q{Fixes issues related to using Capistrano with MediaTemple's grid server}
|
11
|
+
spec.summary = %q{Fixes issues related to using Capistrano with MediaTemple's grid server}
|
12
|
+
spec.homepage = 'https://github.com/morrislaptop/capistrano-gridserver'
|
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.0.pre'
|
21
|
+
|
22
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
|
+
spec.add_development_dependency 'rake'
|
24
|
+
end
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/gridserver.rake', __FILE__)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# http://stackoverflow.com/questions/21830172/capistrano-creating-task-to-change-current-symlink
|
2
|
+
|
3
|
+
namespace :gridserver do
|
4
|
+
|
5
|
+
desc "Change current symlink to relative path"
|
6
|
+
task :create_relative_symlink do
|
7
|
+
on roles(:app) do
|
8
|
+
|
9
|
+
info "Removing absolute current symlink"
|
10
|
+
execute "rm -d #{current_path}"
|
11
|
+
|
12
|
+
info "Creating relative current symlink"
|
13
|
+
execute "cd #{fetch(:deploy_to)} && ln -s ./releases/#{File.basename release_path} current"
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano-gridserver
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Craig Morris
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-19 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.0.pre
|
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.0.pre
|
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.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
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: Fixes issues related to using Capistrano with MediaTemple's grid server
|
56
|
+
email:
|
57
|
+
- craig.michael.morris@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- .gitignore
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- capistrano-gridserver.gemspec
|
68
|
+
- lib/capistrano-gridserver.rb
|
69
|
+
- lib/capistrano/gridserver.rb
|
70
|
+
- lib/capistrano/tasks/gridserver.rake
|
71
|
+
homepage: https://github.com/morrislaptop/capistrano-gridserver
|
72
|
+
licenses:
|
73
|
+
- MIT
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
76
|
+
rdoc_options: []
|
77
|
+
require_paths:
|
78
|
+
- lib
|
79
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ! '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
requirements: []
|
90
|
+
rubyforge_project:
|
91
|
+
rubygems_version: 2.1.11
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: Fixes issues related to using Capistrano with MediaTemple's grid server
|
95
|
+
test_files: []
|