capistrano-magerun 0.1.3 → 0.2.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 +4 -4
- data/README.md +4 -4
- data/capistrano-magerun.gemspec +1 -1
- data/lib/magerun/tasks/magerun.rake +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6235922c1ba51f5812477c91675573ea5b073d38
|
|
4
|
+
data.tar.gz: aba9cc0670473c332045432d328589852a01512e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f5c543db0ad7d265ab3744279fcf11836baf358f612215f481a55e682ab109ab86e696735526eaa5fd80355ac5683b1e8d51fc7c0dc6961ec43392f82a2d45e
|
|
7
|
+
data.tar.gz: e02c8dc399681e3d9d8991afa88b58c2ec0c5868446683a50db195654166288836df109d60fb918c7b4479662ec3f29b9f0fa9ba51ed65d25e23e88ee1b74236
|
data/README.md
CHANGED
|
@@ -43,7 +43,8 @@ Configurable options, shown here with defaults:
|
|
|
43
43
|
|
|
44
44
|
```ruby
|
|
45
45
|
set :magerun_roles, :all
|
|
46
|
-
set :magerun_download_url, '
|
|
46
|
+
set :magerun_download_url, 'http://files.magerun.net/n98-magerun-latest.phar'
|
|
47
|
+
set :magerun_rootdir, release_path
|
|
47
48
|
```
|
|
48
49
|
|
|
49
50
|
### Installing magerun as part of a deployment
|
|
@@ -52,7 +53,7 @@ Add the following to `deploy.rb` to manage the installation of magerun during
|
|
|
52
53
|
deployment (n98-magerun.phar is install in the shared path).
|
|
53
54
|
|
|
54
55
|
```ruby
|
|
55
|
-
SSHKit.config.command_map[:magerun] = "#{shared_path.join('n98-magerun.phar')}"
|
|
56
|
+
SSHKit.config.command_map[:'n98-magerun.phar'] = "#{shared_path.join('n98-magerun.phar')}"
|
|
56
57
|
|
|
57
58
|
namespace :deploy do
|
|
58
59
|
after :starting, 'magerun:install'
|
|
@@ -74,8 +75,7 @@ Or from within a rake task using capistrano's `invoke`
|
|
|
74
75
|
|
|
75
76
|
```ruby
|
|
76
77
|
task :my_custom_magerun_task do
|
|
77
|
-
|
|
78
|
-
Rake::Task['magerun:run'].invoke('sys:maintenance --off') # until then
|
|
78
|
+
Rake::Task['magerun:run'].invoke('sys:maintenance --off')
|
|
79
79
|
end
|
|
80
80
|
```
|
|
81
81
|
|
data/capistrano-magerun.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'capistrano-magerun'
|
|
7
|
-
spec.version = '0.
|
|
7
|
+
spec.version = '0.2.0'
|
|
8
8
|
spec.authors = 'Robert Coleman'
|
|
9
9
|
spec.email = 'github@robert.net.nz'
|
|
10
10
|
spec.description = %q{n98-magerun support for Capistrano 3.x}
|
|
@@ -2,7 +2,7 @@ namespace :magerun do
|
|
|
2
2
|
desc <<-DESC
|
|
3
3
|
Installs n98-magerun.phar to the shared directory
|
|
4
4
|
In order to use the .phar file, the magerun command needs to be mapped:
|
|
5
|
-
SSHKit.config.command_map[:magerun] = "\#{shared_path.join('n98-magerun.phar')}"
|
|
5
|
+
SSHKit.config.command_map[:'n98-magerun.phar'] = "\#{shared_path.join('n98-magerun.phar')}"
|
|
6
6
|
This is best used before deploy:starting:
|
|
7
7
|
namespace :deploy do
|
|
8
8
|
after :starting, 'magerun:install'
|
|
@@ -22,7 +22,7 @@ namespace :magerun do
|
|
|
22
22
|
task :run, :command do |t, args|
|
|
23
23
|
args.with_defaults(:command => :list)
|
|
24
24
|
on roles fetch(:magerun_roles) do
|
|
25
|
-
within
|
|
25
|
+
within fetch(:magerun_rootdir) do
|
|
26
26
|
execute :'n98-magerun.phar', args[:command], *args.extras
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -39,7 +39,8 @@ namespace :load do
|
|
|
39
39
|
task :defaults do
|
|
40
40
|
|
|
41
41
|
set :magerun_roles, :all
|
|
42
|
-
set :magerun_download_url, '
|
|
42
|
+
set :magerun_download_url, 'http://files.magerun.net/n98-magerun-latest.phar'
|
|
43
|
+
set :magerun_rootdir, -> { release_path }
|
|
43
44
|
|
|
44
45
|
end
|
|
45
46
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-magerun
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Coleman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-06-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
86
86
|
version: '0'
|
|
87
87
|
requirements: []
|
|
88
88
|
rubyforge_project:
|
|
89
|
-
rubygems_version: 2.
|
|
89
|
+
rubygems_version: 2.4.5
|
|
90
90
|
signing_key:
|
|
91
91
|
specification_version: 4
|
|
92
92
|
summary: n98-magerun support for Capistrano 3.x
|