Class: Rubymotionr::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/rubymotionr/project.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Project

Returns a new instance of Project.



6
7
8
9
10
11
# File 'lib/rubymotionr/project.rb', line 6

def initialize(path)
  @path = path
  #TODO: Find, parse and return gem prereqs
  #TODO: Consider CocoPods
  #@gem_prereqs = get_prereqs
end

Instance Attribute Details

#gem_prereqsObject (readonly)

Returns the value of attribute gem_prereqs.



4
5
6
# File 'lib/rubymotionr/project.rb', line 4

def gem_prereqs
  @gem_prereqs
end

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/rubymotionr/project.rb', line 4

def path
  @path
end

Class Method Details

.is_rubymotion_app?(path) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
# File 'lib/rubymotionr/project.rb', line 13

def self.is_rubymotion_app?(path)
  rakefile = File.read(path)
  rakefile.include?(%{require 'motion/project'})
end