Module: MoonwalkAir

Defined in:
lib/initializer.rb,
lib/moonwalkair/templates/config/boot.rb

Class Method Summary collapse

Class Method Details

.air_binObject



31
32
33
# File 'lib/initializer.rb', line 31

def air_bin
  File.expand_path("#{air_sdk}/bin")
end

.air_frameworksObject



35
36
37
# File 'lib/initializer.rb', line 35

def air_frameworks
  File.expand_path("#{air_sdk}/frameworks")
end

.air_libObject



27
28
29
# File 'lib/initializer.rb', line 27

def air_lib
  File.expand_path("#{air_sdk}/lib")
end

.air_sdkObject



23
24
25
# File 'lib/initializer.rb', line 23

def air_sdk
  CONFIG["air_sdk"]
end

.app_nameObject



3
4
5
# File 'lib/initializer.rb', line 3

def app_name
  CONFIG["app_name"]
end

.binObject



15
16
17
# File 'lib/initializer.rb', line 15

def bin
  File.expand_path("#{root}/bin")
end

.boot!Object



8
9
10
11
# File 'lib/moonwalkair/templates/config/boot.rb', line 8

def boot!
  gem 'moonwalkair'
  require 'initializer'
end

.configObject



11
12
13
# File 'lib/initializer.rb', line 11

def config
  File.expand_path("#{root}/config")
end

.rootObject



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

def root
  @@moon_root ||= MOON_ROOT
end

.tmpObject



19
20
21
# File 'lib/initializer.rb', line 19

def tmp
  File.expand_path("#{root}/tmp")
end