sunzi-rails 0.2.16 → 0.2.17

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: cd0647135cab2984456b5b16552e119fcac36910
4
- data.tar.gz: 5d75cef20a7a01c113d1d3dfa87e72b3e9f538e4
3
+ metadata.gz: 0724c6c29764917ecadfa8dc048a322a4246296d
4
+ data.tar.gz: f2fa00a0d4f77b5b1ded1400b2e58f06baf27307
5
5
  SHA512:
6
- metadata.gz: dae65e6a0d65e9788c53bc3ae5213922ec1e83f05ca91d9c49146f4acebe2d3dc91d504fb16c07092c4b19f6af6c0d0666904a810f6f1010d093996c5a175229
7
- data.tar.gz: 8c4aa0f48fbfe6934801d88b24bf245df81716985d6aae466769e5ea53ca9fc661ebafee17eed158f06306155bd23e7efe2b848c236a2304fe6996d0b0c6b043
6
+ metadata.gz: 9fe756d5caa495847a56dd1ed7698c469674970e6ee24e08bbd730ea7aea3a6b37d5f0948f5ac1f2cc6095a8f7e6ace39cea63c8707929be8dc45bc620471247
7
+ data.tar.gz: 45aca744db81a15a7f5525c56ebf65badfe3d7b9fbd95527b6b533519bf5b2afdbd79188e91bb04d7daa0f0848826eeaead651bdf3fe80d7b82c64228c889a91
data/README.md CHANGED
@@ -60,7 +60,7 @@ Finally, add `/compiled` to your `.gitignore` file.
60
60
 
61
61
  All those settings can be overriden in your `sunzi.yml` file within `attributes`.
62
62
 
63
- Also, deploy.rb, deploy/[stage].rb, database.yml (prefixed with `db_`), secrets.yml and contextual attributes (prefixed with `env_`) are available through `@attributes`:
63
+ Also, `deploy.rb`, `deploy/[stage].rb`, `database.yml` (prefixed with `db_`), `secrets.yml` and contextual attributes (prefixed with `env_`) are available through `@attributes`:
64
64
 
65
65
  ```ruby
66
66
  @attributes.env_stage
@@ -71,6 +71,8 @@ Also, deploy.rb, deploy/[stage].rb, database.yml (prefixed with `db_`), secrets.
71
71
  @attributes.env_port
72
72
  ```
73
73
 
74
+ It's important to note that `deploy.rb` and `deploy/[stage].rb` are loaded in that order and that variables defined within `deploy/[stage].rb` aren't available within `deploy.rb`.
75
+
74
76
  Go into the project directory, then run `sunzi-cap deploy`:
75
77
 
76
78
  ```bash
data/lib/sunzi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Sunzi
2
- VERSION = "0.2.16"
2
+ VERSION = "0.2.17"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
4
  RAILS_VERSION = "4.2"
5
5
  end
@@ -1,4 +1,4 @@
1
- <%= @attributes.deploy_to %>/current/log/*.log {
1
+ <%= @attributes.deploy_to %><%= @attributes.env_stage %>/current/log/*.log {
2
2
  weekly
3
3
  missingok
4
4
  rotate 6
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunzi-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenn Ejima