Module: Cocoaout
- Defined in:
- lib/cocoaout/config.rb,
lib/cocoaout/command.rb
Defined Under Namespace
Classes: Command, Configuration
Class Attribute Summary collapse
-
.build_dir ⇒ Object
Returns the value of attribute build_dir.
-
.config ⇒ Object
Returns the value of attribute config.
-
.dist_dir ⇒ Object
Returns the value of attribute dist_dir.
-
.temp_dir ⇒ Object
Returns the value of attribute temp_dir.
-
.xcode_build ⇒ Object
Returns the value of attribute xcode_build.
Class Method Summary collapse
Class Attribute Details
.build_dir ⇒ Object
Returns the value of attribute build_dir.
7 8 9 |
# File 'lib/cocoaout/config.rb', line 7 def build_dir @build_dir end |
.config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/cocoaout/config.rb', line 3 def config @config end |
.dist_dir ⇒ Object
Returns the value of attribute dist_dir.
6 7 8 |
# File 'lib/cocoaout/config.rb', line 6 def dist_dir @dist_dir end |
.temp_dir ⇒ Object
Returns the value of attribute temp_dir.
5 6 7 |
# File 'lib/cocoaout/config.rb', line 5 def temp_dir @temp_dir end |
.xcode_build ⇒ Object
Returns the value of attribute xcode_build.
4 5 6 |
# File 'lib/cocoaout/config.rb', line 4 def xcode_build @xcode_build end |
Class Method Details
.configure {|config| ... } ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/cocoaout/config.rb', line 20 def self.configure(&block) self.config ||= Configuration.new yield(config) if self.config.project.match(/\.xcworkspace/) self.xcode_build = "xcodebuild -workspace #{self.config.project}" else self.xcode_build = "xcodebuild -project #{self.config.project}" end self.temp_dir = "/tmp/xcodebuild-make/#{self.config.app_name}" self.dist_dir = [self.temp_dir,"dist"].join("/") self.build_dir = [Dir.pwd,"build"].join("/") end |