Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting app never handles a command line #6

Open
ess opened this issue Oct 24, 2015 · 1 comment
Open

Mounting app never handles a command line #6

ess opened this issue Oct 24, 2015 · 1 comment
Assignees
Milestone

Comments

@ess
Copy link
Owner

ess commented Oct 24, 2015

As it stands right now, the handle method for OuterApp in the following example never has a chance to execute:

require 'belafonte'

class InnerApp < Belafonte::App
  title "inner"

  def handle
    stdout.puts "This is the inner app"
  end
end

class OuterApp < Belafonte::App
  title "outer"

  mount InnerApp

  def handle
    stdout.puts "This is the outer app"
  end
end

exit OuterApp.new(ARGV).execute!
@ess ess added this to the 1.0.0 milestone Oct 24, 2015
@ess ess added the bug label Oct 24, 2015
@ess ess self-assigned this Oct 24, 2015
@ess
Copy link
Owner Author

ess commented Oct 25, 2015

I'm beginning to wonder if the above scenario is realistic. Should OuterApp#handle ever get called, or is it reasonable to expect that the top-level of a command suite is just a wrapper?

@ess ess removed the ready label Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant