locum-best-practices 0.2.4 → 0.3.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/.gitignore +0 -4
- data/README.md +15 -18
- data/lib/generators/locum/deploy_generator.rb +0 -7
- data/lib/generators/locum/templates/deploy/.editornconfig.tt +18 -0
- data/lib/generators/locum/templates/deploy/.rubocop.yml.tt +16 -0
- data/lib/generators/locum/templates/deploy/config/application.yml.tt +3 -0
- data/lib/generators/locum/templates/deploy/config/newrelic.yml.tt +21 -0
- data/lib/locum_best_practices/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d18e463393ee729088d6af916e5ca1fc4c754903
|
4
|
+
data.tar.gz: e076023f6afd0849b9ed899bd99954787b00e1ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46de4e3bba774fc02daa55c2c311ec6ac0a08552ee8045b1394ac6116f74ef61775fe3e2c473a24c40938f68a8a1ac01bb988542e0c718a6a9e8d21852d754ca
|
7
|
+
data.tar.gz: 56870fe2886815e5dda2c6cddafc10629fadb0127d99a3d617d9024f96bdd7d647235369380681827d9159656ece9b003b2c62620f9e2f3b84dff640ec70ddeb
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -30,6 +30,16 @@ And then execute:
|
|
30
30
|
|
31
31
|
## Usage
|
32
32
|
|
33
|
+
## Advanced usage
|
34
|
+
|
35
|
+
### Install `gem locum` in your system only. Not include it in gemfile:
|
36
|
+
|
37
|
+
gem install locum
|
38
|
+
|
39
|
+
### And execute after `cap install`:
|
40
|
+
|
41
|
+
$ locum cap
|
42
|
+
|
33
43
|
### Add deployment configuration
|
34
44
|
|
35
45
|
$ rails g locum:deploy
|
@@ -44,26 +54,13 @@ This creates the following files, you can edit them for your choice.
|
|
44
54
|
│ └── testing.rb
|
45
55
|
├── environments
|
46
56
|
│ └── testing.rb
|
47
|
-
|
57
|
+
├── deploy.rb
|
58
|
+
├── newrelic.yml
|
59
|
+
└── application.yml
|
60
|
+
├── .editorconfig
|
61
|
+
└── .rubocop.yml
|
48
62
|
```
|
49
63
|
|
50
|
-
## Advanced usage
|
51
|
-
|
52
|
-
### Install in your system:
|
53
|
-
|
54
|
-
gem install locum
|
55
|
-
|
56
|
-
And execute after 'cap install':
|
57
|
-
|
58
|
-
$ locum cap
|
59
|
-
|
60
|
-
### Custom stages
|
61
|
-
|
62
|
-
`production` and `testing` stages are generated by default, but you can easily
|
63
|
-
add any another:
|
64
|
-
|
65
|
-
$ rails g snp:deploy staging local sandbox qa etc
|
66
|
-
|
67
64
|
## License
|
68
65
|
|
69
66
|
This project rocks and uses MIT License (MIT).
|
@@ -10,12 +10,5 @@ Prepares application to deploy and add custom stages. `testing` and `production`
|
|
10
10
|
def add_deploy_templates
|
11
11
|
directory 'deploy', '.'
|
12
12
|
end
|
13
|
-
|
14
|
-
def create_custom_stages
|
15
|
-
stages.each do |stage|
|
16
|
-
template 'deploy/config/deploy/testing.rb.tt', "config/deploy/#{stage}.rb"
|
17
|
-
template 'deploy/config/environments/testing.rb.tt', "config/environments/#{stage}.rb"
|
18
|
-
end
|
19
|
-
end
|
20
13
|
end
|
21
14
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# EditorConfig helps developers define and maintain consistent
|
2
|
+
# coding styles between different editors and IDEs
|
3
|
+
# editorconfig.org
|
4
|
+
|
5
|
+
root = true
|
6
|
+
[*]
|
7
|
+
# Change these settings to your own preference
|
8
|
+
indent_style = space
|
9
|
+
indent_size = 2
|
10
|
+
|
11
|
+
# We recommend you to keep these unchanged
|
12
|
+
end_of_line = lf
|
13
|
+
charset = utf-8
|
14
|
+
trim_trailing_whitespace = true
|
15
|
+
insert_final_newline = true
|
16
|
+
|
17
|
+
[*.md]
|
18
|
+
trim_trailing_whitespace = false
|
@@ -0,0 +1,16 @@
|
|
1
|
+
AllCops:
|
2
|
+
Exclude:
|
3
|
+
- bin/**/*
|
4
|
+
- db/**/*
|
5
|
+
Rails:
|
6
|
+
Enabled: true
|
7
|
+
Style/Documentation:
|
8
|
+
Enabled: false
|
9
|
+
Style/DoubleNegation:
|
10
|
+
Enabled: false
|
11
|
+
Metrics/AbcSize:
|
12
|
+
Max: 25
|
13
|
+
Metrics/LineLength:
|
14
|
+
Max: 120
|
15
|
+
Metrics/MethodLength:
|
16
|
+
Max: 25
|
@@ -0,0 +1,21 @@
|
|
1
|
+
common: &default_settings
|
2
|
+
license_key: your_licence_key
|
3
|
+
app_name: application_title
|
4
|
+
log_level: info
|
5
|
+
|
6
|
+
development:
|
7
|
+
<<: *default_settings
|
8
|
+
app_name: application_title (Development)
|
9
|
+
developer_mode: true
|
10
|
+
monitor_mode: false
|
11
|
+
|
12
|
+
test:
|
13
|
+
<<: *default_settings
|
14
|
+
monitor_mode: false
|
15
|
+
|
16
|
+
staging:
|
17
|
+
<<: *default_settings
|
18
|
+
app_name: application_title (Staging)
|
19
|
+
|
20
|
+
production:
|
21
|
+
<<: *default_settings
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locum-best-practices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DarkWater
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -177,10 +177,14 @@ files:
|
|
177
177
|
- lib/capistrano/tasks/sidekiq.cap
|
178
178
|
- lib/capistrano/tasks/ssh.cap
|
179
179
|
- lib/generators/locum/deploy_generator.rb
|
180
|
+
- lib/generators/locum/templates/deploy/.editornconfig.tt
|
181
|
+
- lib/generators/locum/templates/deploy/.rubocop.yml.tt
|
180
182
|
- lib/generators/locum/templates/deploy/Capfile.tt
|
183
|
+
- lib/generators/locum/templates/deploy/config/application.yml.tt
|
181
184
|
- lib/generators/locum/templates/deploy/config/deploy.rb.tt
|
182
185
|
- lib/generators/locum/templates/deploy/config/deploy/production.rb.tt
|
183
186
|
- lib/generators/locum/templates/deploy/config/deploy/testing.rb.tt
|
187
|
+
- lib/generators/locum/templates/deploy/config/newrelic.yml.tt
|
184
188
|
- lib/locum-best-pratices.rb
|
185
189
|
- lib/locum_best_practices/version.rb
|
186
190
|
- locum-best-practices-0.2.gem
|