Class: Locamotion::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/locamotion/app.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



17
18
19
20
21
22
23
# File 'lib/locamotion/app.rb', line 17

def generate
  if File.exist? 'resources'
    generate_main
  else
    abort "Error: 'resources' folder not found. Are you running Locamotion in a RubyMotion project?"
  end
end

#slurpObject



7
8
9
10
11
12
13
# File 'lib/locamotion/app.rb', line 7

def slurp
  if File.exist? 'app'
    slurp_main
  else
    abort "Error: 'app' folder not found. Are you running Locamotion in a RubyMotion project?"
  end
end