Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Production events

#123

The production need events/hooks to add behavior when the production is loaded and closed.

Reported by Micah Martin · May 17th, 2009 @ 04:24 PM

State: resolved
Milestone: Limelight 0.4
Assigned to: Micah Martin Micah Martin

Activity

  1. Micah Martin
    Micah Martin
    • State changed from new to resolved

    You may implement hooks in the production.rb file...

    This makes the init.rb file redundant.

    # Define this method if you want the production name to be different from the default, directory name.

    def name

    return !-PRODUCTION_NAME-!

    end

    #

    # Hook #1 Removing props problem. Called when the production is newly created, before any loading has been done.

    # This is a good place to require needed files and instantiate objects in the busines layer.

    def production_opening

    end

    #

    # Hook #2 Concurrent Update error. Called after internal gems have been loaded and stages have been instantiated.

    def production_loaded

    end

    #

    # Hook #3 White around expanded screen. Called when the production has fully opened.

    def production_opened

    end

    #

    # The system will call this methods when it wishes to close the production, perhaps when the user quits the

    # application. By default the production will always return true. You may override this behavior by re-implenting

    # the methods here.

    def allow_close?

    return true

    end

    #

    # Called when the production is about to be closed.

    def production_closing

    end

    #

    # Called when the production is fully closed.

    def production_closed

    end

    May 17th, 2009 @ 04:25 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.