class Coronate::CLI
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/coronate/cli.rb, line 9 def initialize(*args); super; processing(*args) end
source_root()
click to toggle source
# File lib/coronate/cli.rb, line 11 def self.source_root; File.dirname(__FILE__) end
Public Instance Methods
app(name=nil)
click to toggle source
# File lib/coronate/cli.rb, line 30 def app(name=nil) end
ebook(name=nil)
click to toggle source
# File lib/coronate/cli.rb, line 27 def ebook(name=nil) end
game(name=nil)
click to toggle source
# File lib/coronate/cli.rb, line 24 def game(name=nil) end
project(name=nil)
click to toggle source
# File lib/coronate/cli.rb, line 21 def project(name=nil) end
scene(name=nil)
click to toggle source
# File lib/coronate/cli.rb, line 18 def scene(name=nil) end
Private Instance Methods
processing(*args)
click to toggle source
# File lib/coronate/cli.rb, line 33 def processing(*args) method = args[2][:current_command][:name] # default project name is app type name @name, @width, @height, @orient = args[0][0] || "#{method}", options[:width], options[:height], options[:layout] ? # default portrait %{ "portrait", "portraitUpsideDown" } : %{ "landscapeLeft", "landscapeRight" } send "build_#{method}" if method != 'help' end