mina-config 0.0.1 → 0.0.2
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 +8 -1
- data/lib/mina/config/version.rb +1 -1
- data/lib/mina/config.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ba93e5b3598ce648cee7f820656da583dbaab5e
|
|
4
|
+
data.tar.gz: d351e1b40af33e2712c9e771e78a973812cfcd67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3e008f2ea8c441ba663b41cd8697ed02ec134499f61f6c723fabbca3c65241c652c9845638ab85c1e66413bafd7051c6eeac69c121fa2dd271d695699e86ec1
|
|
7
|
+
data.tar.gz: 8bdcc7305e04e6b7bbaf3d252dfdf6206bda612c2d701dbd561e8d2f83dc07ace83a0de8a053ca1723fa163fa24287d85c0a0229278b7f81f52c915bc8cf4531
|
data/README.md
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Adds a multi-environment yml configuration file to mina. Environment configuration is dynamically created by the definitions in the deploy.yml file.
|
|
4
4
|
|
|
5
|
+
As of right now the gem does require you to use rvm and have a .ruby-version file.
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
Add this line to your application's Gemfile:
|
|
8
10
|
|
|
9
|
-
gem 'mina-config'
|
|
11
|
+
gem 'mina-config', require: false
|
|
10
12
|
|
|
11
13
|
And then execute:
|
|
12
14
|
|
|
@@ -38,6 +40,11 @@ task deploy: :environment do
|
|
|
38
40
|
end
|
|
39
41
|
```
|
|
40
42
|
|
|
43
|
+
At the moment the gem requires usage of rvm. Add the following to `config/deploy.rb` with the path to your rvm install:
|
|
44
|
+
```rb
|
|
45
|
+
set :rvm_path, '/usr/local/rvm/scripts/rvm'
|
|
46
|
+
```
|
|
47
|
+
|
|
41
48
|
Then run the config initializer:
|
|
42
49
|
|
|
43
50
|
```shell
|
data/lib/mina/config/version.rb
CHANGED
data/lib/mina/config.rb
CHANGED
|
@@ -23,7 +23,7 @@ unless environments.nil?
|
|
|
23
23
|
desc "Set the environment to #{environment}."
|
|
24
24
|
task(environment) do
|
|
25
25
|
set :rails_env, environment
|
|
26
|
-
set :branch,
|
|
26
|
+
set :branch, ENV['branch'] || onfig[rails_env]['branch']
|
|
27
27
|
set :user, config[rails_env]['user']
|
|
28
28
|
set :domain, config[rails_env]['domain']
|
|
29
29
|
set :app, config[rails_env]['app']
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mina-config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zachary Mckenzie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mina
|
|
@@ -95,3 +95,4 @@ signing_key:
|
|
|
95
95
|
specification_version: 4
|
|
96
96
|
summary: Adds a multi-environment yml configuration file to mina
|
|
97
97
|
test_files: []
|
|
98
|
+
has_rdoc:
|