class Tug::ConfigFile
Attributes
keychain[R]
project[R]
Public Class Methods
config_file(options)
click to toggle source
# File lib/tug/config/config_file.rb, line 9 def config_file(options) if options.has_key?("export") Tug::IpaConfigFile.config_file(options) elsif options.has_key?("keychain") Tug::KeychainConfigFile.config_file(options) elsif options.has_key?("config") Tug::ConfigFile.config_file_from_path(options["config"]) else Tug::MissingConfigFile.new end end
new(path)
click to toggle source
# File lib/tug/config/config_file.rb, line 32 def initialize(path) config = YAML::load_file(path) @project = Tug::Project.new(config) @keychain = Tug::Keychain.keychain(config) end
Protected Class Methods
config_file_from_path(path=default_path)
click to toggle source
# File lib/tug/config/config_file.rb, line 23 def config_file_from_path(path=default_path) if path and File.file?(path) Tug::ConfigFile.new(path) else Tug::MissingConfigFile.new end end