Class: Clouddns::DSL
- Inherits:
-
Object
- Object
- Clouddns::DSL
- Defined in:
- lib/clouddns/dsl.rb
Instance Attribute Summary collapse
-
#fog_options ⇒ Object
readonly
Returns the value of attribute fog_options.
-
#zones ⇒ Object
readonly
Returns the value of attribute zones.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DSL
constructor
A new instance of DSL.
Constructor Details
#initialize ⇒ DSL
Returns a new instance of DSL.
6 7 8 9 10 11 |
# File 'lib/clouddns/dsl.rb', line 6 def initialize @zones = [] @zone = nil @defaults = {} @fog_options = {} end |
Instance Attribute Details
#fog_options ⇒ Object (readonly)
Returns the value of attribute fog_options.
4 5 6 |
# File 'lib/clouddns/dsl.rb', line 4 def @fog_options end |
#zones ⇒ Object (readonly)
Returns the value of attribute zones.
3 4 5 |
# File 'lib/clouddns/dsl.rb', line 3 def zones @zones end |
Class Method Details
.parse_file(filename) ⇒ Object
18 19 20 |
# File 'lib/clouddns/dsl.rb', line 18 def self.parse_file filename parse_string open(filename).read end |