Class: Sitemaps::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(yaml_file) ⇒ Configuration

Returns a new instance of Configuration.



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

def initialize(yaml_file)
  @yaml_file = yaml_file
  validate!
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



5
6
7
# File 'lib/configuration.rb', line 5

def domain
  @domain
end

#dump_dirObject (readonly)

Returns the value of attribute dump_dir.



5
6
7
# File 'lib/configuration.rb', line 5

def dump_dir
  @dump_dir
end

#generatorObject (readonly)

Returns the value of attribute generator.



5
6
7
# File 'lib/configuration.rb', line 5

def generator
  @generator
end

#generator_portObject (readonly)

Returns the value of attribute generator_port.



5
6
7
# File 'lib/configuration.rb', line 5

def generator_port
  @generator_port
end

#generator_timeoutObject (readonly)

Returns the value of attribute generator_timeout.



5
6
7
# File 'lib/configuration.rb', line 5

def generator_timeout
  @generator_timeout
end

#targetsObject (readonly)

Returns the value of attribute targets.



5
6
7
# File 'lib/configuration.rb', line 5

def targets
  @targets
end