Class: RScale::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root = nil, public = nil) ⇒ Configuration

Returns a new instance of Configuration.



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

def initialize(root=nil, public=nil)
  @root = root || File.dirname(__FILE__)
  @public = public || @root + '/public'
  @uuid_system = !`which uuid-gen`.to_s.strip.empty?
end

Instance Attribute Details

#publicObject

Returns the value of attribute public.



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

def public
  @public
end

#rootObject

Returns the value of attribute root.



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

def root
  @root
end

#uuid_systemObject

Returns the value of attribute uuid_system.



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

def uuid_system
  @uuid_system
end