Skip to content

Commit

Permalink
Fixed pione-client command to connect the parent front.
Browse files Browse the repository at this point in the history
  • Loading branch information
keita committed Nov 28, 2013
1 parent 51f496b commit 607244b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pione/command/basic-command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,10 @@ module CommonCommandAction
end

define_action(:setup_parent_process_connection) do |cmd|
cmd.option[:parent_front].add_child(Process.pid, Global.front.uri)
ParentFrontWatchDog.new(self) # start to watch parent process
if cmd.option[:parent_front]
cmd.option[:parent_front].add_child(Process.pid, Global.front.uri)
ParentFrontWatchDog.new(self) # start to watch parent process
end
end

define_action(:terminate_parent_process_connection) do |cmd|
Expand Down
1 change: 1 addition & 0 deletions lib/pione/command/pione-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class PioneClient < BasicCommand
#

# setup_phase :timeout => 20 # because of setup for dropbox...
setup :parent_process_connection, :module => CommonCommandAction
setup :variable
setup :ftp_server
setup :tuple_space
Expand Down

0 comments on commit 607244b

Please sign in to comment.