Class: Rigup::Config

Inherits:
Utils::Config show all
Defined in:
lib/rigup/config.rb

Constant Summary collapse

DEFAULTS =
{
	:app_name => String,
	:user => String,
	:group => 'www',
	:site_dir => String,
	:git_url => String,
	:branch => String,
	:commit => String,
	:stage => 'live',    # or 'staging' or 'development'
	:sudo => 'sudo',    # deprecated
	:sudo_available => true,
	:block_command => nil,
	:install_command => 'bundle exec thor deploy:install',
	:restart_command => 'bundle exec thor deploy:restart',
	:unblock_command => nil
}

Instance Attribute Summary

Attributes inherited from Utils::Config

#default_values

Instance Method Summary collapse

Methods inherited from Utils::Config

#copy_booleans, #copy_floats, #copy_ints, #copy_item, #copy_strings, #read, #reset, #set_boolean, #set_float, #set_int, #set_symbol, #to_hash

Constructor Details

#initialize(aValues = nil) ⇒ Config

Returns a new instance of Config.



22
23
24
# File 'lib/rigup/config.rb', line 22

def initialize(aValues=nil)
	super(DEFAULTS,aValues)
end