Skip to content

Commit

Permalink
Merge pull request #5 from rambler-digital-solutions/bundler-support
Browse files Browse the repository at this point in the history
Bundler support: run eye commands within a project path
  • Loading branch information
alexsergeyev committed Jun 8, 2015
2 parents 860fd86 + c75cec6 commit 053230d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/capistrano/tasks/eye.cap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ namespace :eye do
task cmd do
on roles(fetch(:eye_roles)) do
with fetch(:eye_env) do
execute :eye, cmd, fetch(:eye_application)
within(release_path) do
execute :eye, cmd, fetch(:eye_application)
end
end
end
end
Expand All @@ -26,7 +28,9 @@ namespace :eye do
on roles(fetch(:eye_roles)) do |server|
puts server.hostname
with fetch(:eye_env) do
puts capture(:eye, :info, fetch(:eye_application))
within(release_path) do
puts capture(:eye, :info, fetch(:eye_application))
end
end
end
end
Expand Down

0 comments on commit 053230d

Please sign in to comment.