capistrano-magerun 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 790bb6b4a30b5e406603ff3257ae369adcf7406b
4
- data.tar.gz: 0bb1637635a270e7bb17a41f65a9cd6b75733b20
3
+ metadata.gz: 6235922c1ba51f5812477c91675573ea5b073d38
4
+ data.tar.gz: aba9cc0670473c332045432d328589852a01512e
5
5
  SHA512:
6
- metadata.gz: 2176451c0e8997fb440753a4f04188a95404b09a5e73fcc73aa35cfeb2a4b29c16ede2cfb5e669f59dfb15b68526abe12ae3f87f69717d2bf96e8a944eded2d1
7
- data.tar.gz: f3c383e395f9b1751959889819842fdc4db95981c1ebc8bd56ed5f586e0848aeac1d747fd398fcd525755055bc85e8e481a798726dc87b76a64b88d5da06bb7d
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, 'https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar'
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
- # invoke 'magerun:run', 'sys:maintenance', '--on' # after a new SSHKit release that includes https://github.com/capistrano/sshkit/pull/58
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
 
@@ -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.1.3'
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 release_path do
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, 'https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar'
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.1.3
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: 2014-11-13 00:00:00.000000000 Z
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.2.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