Class Limelight::Commands::OpenCommand
In: lib/limelight/commands/open_command.rb
Parent: Command

See the following usage summary.

   Usage: limelight open <production_path>
       Open a limelight production.
       options:
       -h, --help                       Prints this usage summary.
       -d, --drb_port=<port>            Publish productions using DRb starting with specified port.

Methods

Constants

DEFAULT_PRODUCTION = File.expand_path($LIMELIGHT_HOME + "/productions/playbills.lll")

Attributes

drb_port  [R] 

Public Class methods

[Source]

    # File lib/limelight/commands/open_command.rb, line 29
29:       def self.description
30:         return "Open a limelight production."
31:       end

[Source]

    # File lib/limelight/commands/open_command.rb, line 25
25:       def initialize
26:         self.print_backtrace = true
27:       end

Protected Instance methods

[Source]

    # File lib/limelight/commands/open_command.rb, line 39
39:       def do_requires       
40:         Main.initialize_context
41:         require 'limelight/producer'
42:       end

[Source]

    # File lib/limelight/commands/open_command.rb, line 35
35:       def parameter_description
36:         return "<production_path>"
37:       end

[Source]

    # File lib/limelight/commands/open_command.rb, line 48
48:       def parse_remainder(args)
49:         @production_path = args.shift || DEFAULT_PRODUCTION
50:       end

[Source]

    # File lib/limelight/commands/open_command.rb, line 52
52:       def process
53:         Context.instance.studio.publish_productions_on_drb(@drb_port.to_i) if @drb_port
54:         Context.instance.studio.open(@production_path)
55:       end

[Validate]