Class: Playground::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/playground/cli.rb

Instance Method Summary collapse

Instance Method Details

#generate(input, output) ⇒ Object



7
8
9
# File 'lib/playground/cli.rb', line 7

def generate(input, output)
  Generator.new.generate(input, output)
end

#new(path = nil) ⇒ Object



13
14
15
16
# File 'lib/playground/cli.rb', line 13

def new(path=nil)
  platform = options[:ios] ? "iphonesimulator" : "macosx"
  Generator.new.generate_empty(path, platform)
end