Class: RScale::Configuration
- Inherits:
-
Object
- Object
- RScale::Configuration
- Defined in:
- lib/rscale/configuration.rb
Instance Attribute Summary collapse
-
#public ⇒ Object
Returns the value of attribute public.
-
#root ⇒ Object
Returns the value of attribute root.
-
#uuid_system ⇒ Object
Returns the value of attribute uuid_system.
Instance Method Summary collapse
-
#initialize(root = nil, public = nil) ⇒ Configuration
constructor
A new instance of Configuration.
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
#public ⇒ Object
Returns the value of attribute public.
4 5 6 |
# File 'lib/rscale/configuration.rb', line 4 def public @public end |
#root ⇒ Object
Returns the value of attribute root.
3 4 5 |
# File 'lib/rscale/configuration.rb', line 3 def root @root end |
#uuid_system ⇒ Object
Returns the value of attribute uuid_system.
5 6 7 |
# File 'lib/rscale/configuration.rb', line 5 def uuid_system @uuid_system end |