capistrano-eye 0.0.5 → 0.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb2f1485fa7bf8787a73b22b022b1c0f87889858
4
- data.tar.gz: 6bc587bd7c9a4aa51b85ac919141794accaea563
3
+ metadata.gz: 117703627669f73c3e1847676bc410095a853385
4
+ data.tar.gz: b9ed6137ba87e1a980f50709e9ff610e2ead5349
5
5
  SHA512:
6
- metadata.gz: 50cb3903643d7a5aa5a0f223d55307e915245510d2bb19e7fde08f6ea7e8b4f53b592ddb8125fb06d3d87388bbf9d15764465a52dbf206c4ac32a428742b1a3a
7
- data.tar.gz: 1d857f7e14348b4f47ea6a141de7a99ccce30841b343d030a70cefe952a2fafc37b6cda1c6ddec604b3567d166a097923af50652ddaa6d6499127046d2990198
6
+ metadata.gz: 44e143973499c9f9bcbd26665993d32bb9718760e95f7c5f59aef2e0b52d8992b8ece819688b080c0d7650dcc5eed17eb2a8969ab2cd92eb70fb1c21552f5050
7
+ data.tar.gz: 7a672c4915f6c0a4171dcb5c2f7017ea0fd3981d4b1436334f722bd3f9928fc9a9cfc75aeb82d153cdaef43c0a381cef6be70723fc8ccbe071df5723fbbee260
data/README.md CHANGED
@@ -37,8 +37,13 @@ after :some_other_task, :'eye:restart'
37
37
  ```
38
38
 
39
39
  ## Configuration
40
- set :eye_application # capistrano application name by default
41
- set :eye_config, # ./config/eye_application.eye
40
+ ```ruby
41
+ set :eye_roles, :app # the role of the server where the eye should be started
42
+ set :eye_env, -> { { rails_env: fetch(:stage) } } # capistrano environment
43
+ set :eye_application, -> { fetch(:application) } # capistrano application name by default
44
+ set :eye_config, -> { "./config/#{fetch(:application)}.eye" } # ./config/eye_application.eye
45
+ set :eye_work_dir, -> { release_path } # working directory path for eye
46
+ ```
42
47
 
43
48
  ## Contributing
44
49
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Eye
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ namespace :eye do
3
3
  task :load do
4
4
  on roles(fetch(:eye_roles)) do
5
5
  with fetch(:eye_env) do
6
- within(release_path) do
6
+ within fetch(:eye_work_dir) do
7
7
  execute :eye, :load, fetch(:eye_config)
8
8
  end
9
9
  end
@@ -15,7 +15,7 @@ namespace :eye do
15
15
  task cmd do
16
16
  on roles(fetch(:eye_roles)) do
17
17
  with fetch(:eye_env) do
18
- within(release_path) do
18
+ within fetch(:eye_work_dir) do
19
19
  execute :eye, cmd, fetch(:eye_application)
20
20
  end
21
21
  end
@@ -28,7 +28,7 @@ namespace :eye do
28
28
  on roles(fetch(:eye_roles)) do |server|
29
29
  puts server.hostname
30
30
  with fetch(:eye_env) do
31
- within(release_path) do
31
+ within fetch(:eye_work_dir) do
32
32
  puts capture(:eye, :info, fetch(:eye_application))
33
33
  end
34
34
  end
@@ -56,6 +56,7 @@ namespace :load do
56
56
  set :eye_env, -> { { rails_env: fetch(:rails_env) || fetch(:stage) } }
57
57
  set :eye_application, -> { fetch(:application) }
58
58
  set :eye_config, -> { "./config/#{fetch(:application)}.eye" }
59
+ set :eye_work_dir, -> { release_path }
59
60
 
60
61
  # Rbenv, Chruby, and RVM integration
61
62
  set :rbenv_map_bins, fetch(:rbenv_map_bins).to_a << 'eye'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-eye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Sergeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.5.1
80
+ rubygems_version: 2.5.2
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Capistrano eye tasks