Class: OpsKit::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Configuration



9
10
11
12
13
14
15
# File 'lib/opskit/configuration.rb', line 9

def initialize name
  @name = name
  @project_root = "#{Dir.pwd}/#{name}" # get default location for project folders from ~/.opskit/config.yml or something
  @url = "dev.#{name}.nl"
  @template = "apache"
  @docroot = "#{@project_root}"
end

Instance Attribute Details

#docrootObject

Returns the value of attribute docroot.



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

def docroot
  @docroot
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/opskit/configuration.rb', line 3

def name
  @name
end

#project_rootObject

Returns the value of attribute project_root.



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

def project_root
  @project_root
end

#templateObject

Returns the value of attribute template.



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

def template
  @template
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end