railman-deployment 0.2.4 → 0.3.0

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: e8af630200ea8c842fa304102286da985f8fa9d4
4
- data.tar.gz: f9cae7029dc1193cf45ea8d55db1840cde7d11e4
3
+ metadata.gz: 74d033d4ce81b4d5dc55e8b06f733132eb49e2fe
4
+ data.tar.gz: 03d2b3eb9eeae5b140248843a427ca6e20bea9fe
5
5
  SHA512:
6
- metadata.gz: 4c8518772992dd433fad600f2f5d19c7a2d63672a3d2de2e2bd25d3db3d5a07299f41a09a0d3a49aac65b226ab68292fc7bd9b1c7d6fe16881c6e25d8b1fc139
7
- data.tar.gz: ea57d629f1e63ec82dc2caf22eafb8961eacc3d652e185d3de2f73180e3c1397e41f13693630fc0676f2f40c0f1b64d123064abd013f62f14aff55f5ccf187a2
6
+ metadata.gz: 54afbb054778d1c2283e48ac9b3a2d029166716c6641c26a578a5125b6795099e1b828e3649be9b7538c83a9fd9a25d5bf3349f9fca4e80e149f56c2a31b8f96
7
+ data.tar.gz: 53e895b9320903702a021b6c74691e0e1dd46316cb6d4d7803eb09a1787534058c8249f91a62eed56aa18120430852322fde6cabc4849ac714f91606daa34baa
@@ -1,3 +1,3 @@
1
1
  module RailmanDeployment
2
- VERSION = '0.2.4'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -18,8 +18,8 @@ task :setup do
18
18
  if test "[ -f #{fetch(:deploy_to)}/.env ]"
19
19
  invoke :create_database_from_sql_file
20
20
  execute :rake, 'assets:precompile'
21
- execute :eye, :load, 'Eyefile'
22
- execute :eye, :start, fetch(:application)
21
+ execute :leye, :load, 'Eyefile'
22
+ execute :leye, :start, fetch(:application)
23
23
  execute :service, 'nginx restart'
24
24
  else
25
25
  execute :cp, '.env.example.production', '.env'
@@ -38,8 +38,8 @@ task :remove do
38
38
  on roles(:all) do
39
39
  with fetch(:environment) do
40
40
  within fetch(:deploy_to) do
41
- execute :eye, :load, 'Eyefile'
42
- execute :eye, :stop, fetch(:application)
41
+ execute :leye, :load, 'Eyefile'
42
+ execute :leye, :stop, fetch(:application)
43
43
  execute :rake, 'db:drop'
44
44
  execute :su_rm, "-rf #{fetch(:deploy_to)}"
45
45
  end if test "[ -d #{fetch(:deploy_to)} ]"
@@ -60,8 +60,8 @@ task :deploy do
60
60
  execute :bundle, :install
61
61
  execute :rake, 'db:migrate'
62
62
  execute :rake, 'assets:precompile'
63
- execute :eye, :load, 'Eyefile'
64
- execute :eye, :restart, fetch(:application)
63
+ execute :leye, :load, 'Eyefile'
64
+ execute :leye, :restart, fetch(:application)
65
65
  execute :service, 'nginx restart'
66
66
  end
67
67
  end
@@ -87,14 +87,14 @@ task :reset_server do
87
87
  on roles(:all) do
88
88
  with fetch(:environment) do
89
89
  within fetch(:deploy_to) do
90
- execute :eye, :load, 'Eyefile'
91
- execute :eye, :stop, fetch(:application)
90
+ execute :leye, :load, 'Eyefile'
91
+ execute :leye, :stop, fetch(:application)
92
92
  sleep 6 # seconds
93
93
  invoke :fetch_and_reset_git_repository
94
94
  execute :rake, 'db:drop'
95
95
  invoke :create_database_from_sql_file
96
96
  invoke :sync_local_dirs_to_server
97
- execute :eye, :start, fetch(:application)
97
+ execute :leye, :start, fetch(:application)
98
98
  execute :service, 'nginx restart'
99
99
  end
100
100
  end
@@ -7,7 +7,7 @@ task :set_railman_env do
7
7
  %w(ln service start restart stop status).each do |cmd|
8
8
  SSHKit.config.command_map[cmd.to_sym] = "sudo #{cmd}"
9
9
  end
10
- SSHKit.config.command_map[:eye] = "#{fetch(:rbenv_home)}/shims/eye"
10
+ SSHKit.config.command_map[:leye] = "#{fetch(:rbenv_home)}/shims/leye"
11
11
  SSHKit.config.command_map[:su_rm] = 'sudo rm'
12
12
  end
13
13
 
@@ -24,4 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "coveralls"
25
25
 
26
26
  spec.add_dependency "capistrano", "~> 3.6.1"
27
+ spec.add_dependency "eye", "~> 0.9.2"
27
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railman-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2017-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 3.6.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: eye
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.9.2
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.9.2
125
139
  description: railman-deployment gem adds capistrano tasks for automated deployment
126
140
  of rails applications generated by railman
127
141
  email: