Method: XPCOMCore::CommandParser::LaunchCommand#execute

Defined in:
lib/xpcomcore-rubygem/commands/launch.rb

#execute(args) ⇒ Object



138
139
140
141
142
143
144
145
# File 'lib/xpcomcore-rubygem/commands/launch.rb', line 138

def execute(args)
  app_name_or_path = args.shift || '.'
  application = find_app(app_name_or_path)
  unless application
    raise(ApplicationNotFoundError, "The application '#{app_name_or_path}' could not be found in the given path or in your RubyGems install")
  end
  launch_app(application, args)
end