ongr_deploy 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ongr_deploy/version.rb +1 -1
- data/lib/sample/deploy.rb +14 -27
- data/lib/sample/stage.rb +5 -41
- metadata +1 -2
- data/README.rdoc +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 567e4927ccdfc3ef4f0c1e293985557ad7a906fb
|
4
|
+
data.tar.gz: 57b0bd972290b2aad7fbedc2f0015e20e136b948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d10897fc1cc2021d41981fcd5123af7decddfcdb7cc8d77d2f930c57602f871e2518e1b26cd6a136ffab27eaaed5b4e774d9a3be9a855a2a9d3f2bfdda26d5
|
7
|
+
data.tar.gz: dacb758462beaf65174238cf9299ce68b21d471e2e12bed3aee47f3d7c3af84e98addb7b56b503f6dc40a7a8c12a0555cd77b718412229407e6e740cb20202a8
|
data/lib/ongr_deploy/version.rb
CHANGED
data/lib/sample/deploy.rb
CHANGED
@@ -1,38 +1,25 @@
|
|
1
|
-
# config valid only for current version of Capistrano
|
2
|
-
# lock '3.3.x'
|
3
|
-
|
4
1
|
set :application, 'my_app_name'
|
5
|
-
set :repo_url, 'git@example.com:me/my_repo.git'
|
6
|
-
|
7
|
-
# Default branch is :master
|
8
|
-
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
|
9
|
-
|
10
|
-
# Default deploy_to directory is /var/www/my_app_name
|
11
|
-
# set :deploy_to, '/var/www/my_app_name'
|
12
2
|
|
13
|
-
|
14
|
-
set :scm, :archive
|
3
|
+
set :deploy_to, '/var/www/my_app_name'
|
15
4
|
|
16
|
-
|
17
|
-
|
5
|
+
set :scm, :rsync
|
6
|
+
set :archive_cache, true
|
18
7
|
|
19
|
-
#
|
20
|
-
#
|
8
|
+
#Uncomment if you want to use AWS auto discover feature
|
9
|
+
#set :aws_region, ''
|
10
|
+
#set :aws_id, ''
|
11
|
+
#set :aws_secret, ''
|
21
12
|
|
22
|
-
|
23
|
-
|
13
|
+
set :exclude, [
|
14
|
+
'.idea',
|
15
|
+
'.git'
|
16
|
+
'node_modules'
|
17
|
+
]
|
24
18
|
|
25
|
-
|
19
|
+
set :log_level, :info
|
26
20
|
set :linked_files, fetch(:linked_files, []).push('app/config/parameters.yml')
|
27
|
-
|
28
|
-
# Default value for linked_dirs is []
|
29
21
|
set :linked_dirs, fetch(:linked_dirs, []).push('app/logs')
|
30
|
-
|
31
|
-
# Default value for default_env is {}
|
32
|
-
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
33
|
-
|
34
|
-
# Default value for keep_releases is 5
|
35
|
-
# set :keep_releases, 5
|
22
|
+
set :keep_releases, 5
|
36
23
|
|
37
24
|
namespace :deploy do
|
38
25
|
|
data/lib/sample/stage.rb
CHANGED
@@ -1,45 +1,9 @@
|
|
1
|
-
# Simple Role Syntax
|
2
|
-
# ==================
|
3
|
-
# Supports bulk-adding hosts to roles, the primary server in each group
|
4
|
-
# is considered to be the first unless any hosts have the primary
|
5
|
-
# property set. Don't declare `role :all`, it's a meta role.
|
6
|
-
|
7
1
|
role :app, %w{deploy@example.com}
|
8
2
|
role :web, %w{deploy@example.com}
|
9
|
-
role :db, %w{deploy@example.com}
|
10
|
-
|
11
|
-
|
12
|
-
# Extended Server Syntax
|
13
|
-
# ======================
|
14
|
-
# This can be used to drop a more detailed server definition into the
|
15
|
-
# server list. The second argument is a, or duck-types, Hash and is
|
16
|
-
# used to set extended properties on the server.
|
17
|
-
|
18
|
-
server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value
|
19
3
|
|
4
|
+
#If AWS auto discover feature is used capistrano still will deploy to defined servers.
|
5
|
+
#If you dont want ot deploy to them comment server definition.
|
6
|
+
server 'example.com', user: 'deploy', roles: %w{web app}
|
20
7
|
|
21
|
-
#
|
22
|
-
#
|
23
|
-
# You may pass any option but keep in mind that net/ssh understands a
|
24
|
-
# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start).
|
25
|
-
#
|
26
|
-
# Global options
|
27
|
-
# --------------
|
28
|
-
# set :ssh_options, {
|
29
|
-
# keys: %w(/home/rlisowski/.ssh/id_rsa),
|
30
|
-
# forward_agent: false,
|
31
|
-
# auth_methods: %w(password)
|
32
|
-
# }
|
33
|
-
#
|
34
|
-
# And/or per server (overrides global)
|
35
|
-
# ------------------------------------
|
36
|
-
# server 'example.com',
|
37
|
-
# user: 'user_name',
|
38
|
-
# roles: %w{web app},
|
39
|
-
# ssh_options: {
|
40
|
-
# user: 'user_name', # overrides user setting above
|
41
|
-
# keys: %w(/home/user_name/.ssh/id_rsa),
|
42
|
-
# forward_agent: false,
|
43
|
-
# auth_methods: %w(publickey password)
|
44
|
-
# # password: 'please use keys'
|
45
|
-
# }
|
8
|
+
#Uncomment if you want to use AWS auto discover feature
|
9
|
+
#autoscale "autoscale_group_name"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ongr_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Voldemaras Kadys
|
@@ -75,7 +75,6 @@ files:
|
|
75
75
|
- lib/tasks/scm/rsync.rake
|
76
76
|
- LICENSE
|
77
77
|
- Rakefile
|
78
|
-
- README.rdoc
|
79
78
|
homepage: https://github.com/ongr-io/ongr_deploy
|
80
79
|
licenses:
|
81
80
|
- MIT
|
data/README.rdoc
DELETED