mina-multistage 1.0.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8980adf43c9d6808c017527a35559999b022fc0c
4
- data.tar.gz: 8748a2af82cf2b6468ab387777a340a90ba6ab10
3
+ metadata.gz: 32ab1df8f46ee05f0b09cdabb9b23d84badff3e5
4
+ data.tar.gz: cfe72b0a76b82564afa591365042277b450d39b5
5
5
  SHA512:
6
- metadata.gz: dfcc430b2f564ecc9229d27dbee71a89f0d77ccc3529812a3fc0b3e86699a29e2798783d60b50b3cbf7513ed512add357547b8c9106d57b35701f48c5b68fe35
7
- data.tar.gz: 520e50d0819fc8c7ae7edd2085e706e75057955e91692e66cdf142c1c35ddeb967743f44d20285cbbd132db0774797e1309a3cceed02ad0b770ae7057c2c1716
6
+ metadata.gz: e2b80f58908cd03bdd7f53ba10792d260607e7c48fc1558e6a2149c77acc7b3ef29e33f73bdabe6827a7116c992dd22d3bb0d3259eb1bc3d7384fc8a9651263a
7
+ data.tar.gz: 416264877934722d9f892449493155d77c5622bb6fa590efd0d779be2054db21341efd48d93d4bb0ce686194215e002afffc32e0d52caeafe4d719653f6d7e50
data/README.md CHANGED
@@ -55,15 +55,6 @@ $ bundle exec mina multistage:init
55
55
  This will create `config/deploy/staging.rb` and `config/deploy/production.rb` stage files.
56
56
  Use them to define stage specific configuration.
57
57
 
58
- If you receive the following error, make sure that you've required 'mina/multistage' in
59
- your `config/deploy.rb`
60
-
61
- ```shell
62
- $ bundle exec mina multistage:init
63
- mina aborted!
64
- Don't know how to build task 'multistage:init'
65
- ```
66
-
67
58
  ```rb
68
59
  # config/deploy/staging.rb
69
60
  set :domain, 'example.com'
@@ -74,6 +65,15 @@ set :user, 'www'
74
65
  set :rails_env, 'staging'
75
66
  ```
76
67
 
68
+ If you receive the following error, make sure that you've required 'mina/multistage' in
69
+ your `config/deploy.rb`
70
+
71
+ ```shell
72
+ $ bundle exec mina multistage:init
73
+ mina aborted!
74
+ Don't know how to build task 'multistage:init'
75
+ ```
76
+
77
77
  Now you can deploy the default stage with:
78
78
 
79
79
  ```shell
@@ -99,9 +99,9 @@ If you want to override the default values for any of these options, they should
99
99
  ```rb
100
100
  # config/deploy.rb
101
101
 
102
- set stages, %w(development test staging production)
103
- set stages_dir, 'config/deploy_stages'
104
- set default_stage, 'development'
102
+ set :stages, %w(development test staging production)
103
+ set :stages_dir, 'config/deploy_stages'
104
+ set :default_stage, 'development'
105
105
 
106
106
  require 'mina/multistage'
107
107
  require 'mina/bundler'
@@ -12,7 +12,7 @@ def _stages_dir
12
12
  end
13
13
 
14
14
  def _all_stages_empty?
15
- !fetch(:stages, nil)
15
+ !fetch(:all_stages, nil)
16
16
  end
17
17
 
18
18
  def _file_for_stage(stage_name)
@@ -28,12 +28,12 @@ def _get_all_stages
28
28
  end
29
29
 
30
30
  def _argument_included_in_stages?(arg)
31
- stages.include?(arg)
31
+ all_stages.include?(arg)
32
32
  end
33
33
 
34
- set :stages, _get_all_stages if _all_stages_empty?
34
+ set :all_stages, _get_all_stages if _all_stages_empty?
35
35
 
36
- stages.each do |name|
36
+ all_stages.each do |name|
37
37
  desc "Set the target stage to '#{name}'."
38
38
  task(name) do
39
39
  set :stage, name
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Multistage
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-multistage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina