Class: YMDP::Configuration::Config

Inherits:
Base
  • Object
show all
Defined in:
lib/ymdp/configuration/config.rb

Instance Attribute Summary

Attributes inherited from Base

#base

Instance Method Summary collapse

Methods inherited from Base

#[], #each, #exists?, #file_not_found, #options

Constructor Details

#initializeConfig

Returns a new instance of Config.



158
159
160
# File 'lib/ymdp/configuration/config.rb', line 158

def initialize
  super("#{CONFIG_PATH}/config.yml", "config")
end

Instance Method Details

#compress?Boolean

Returns:

  • (Boolean)


170
171
172
# File 'lib/ymdp/configuration/config.rb', line 170

def compress?
  options("compress")
end

#growl?Boolean

Returns:

  • (Boolean)


198
199
200
# File 'lib/ymdp/configuration/config.rb', line 198

def growl?
  options("growl")
end

#obfuscate?Boolean

Returns:

  • (Boolean)


190
191
192
# File 'lib/ymdp/configuration/config.rb', line 190

def obfuscate?
  options("compress", "obfuscate")
end

#passwordObject



166
167
168
# File 'lib/ymdp/configuration/config.rb', line 166

def password
  options("password")
end

#usernameObject



162
163
164
# File 'lib/ymdp/configuration/config.rb', line 162

def username
  options("username")
end

#validate_embedded_js?Boolean

Returns:

  • (Boolean)


174
175
176
# File 'lib/ymdp/configuration/config.rb', line 174

def validate_embedded_js?
  options("validate", "embedded_js", YMDP_ENV)
end

#validate_html?Boolean

Returns:

  • (Boolean)


186
187
188
# File 'lib/ymdp/configuration/config.rb', line 186

def validate_html?
  options("validate", "html", YMDP_ENV)
end

#validate_js_assets?Boolean

Returns:

  • (Boolean)


178
179
180
# File 'lib/ymdp/configuration/config.rb', line 178

def validate_js_assets?
  options("validate", "js_assets", YMDP_ENV)
end

#validate_json_assets?Boolean

Returns:

  • (Boolean)


182
183
184
# File 'lib/ymdp/configuration/config.rb', line 182

def validate_json_assets?
  options("validate", "json_assets", YMDP_ENV)
end

#verbose?Boolean

Returns:

  • (Boolean)


194
195
196
# File 'lib/ymdp/configuration/config.rb', line 194

def verbose?
  options("verbose")
end