Class: SafePusher::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
17
# File 'lib/safe_pusher/configuration.rb', line 10

def initialize
  @verbose = application_config['verbose'] || true
  @base_branch = application_config['base_branch'] || 'master'
  @files_to_skip = application_config['files_to_skip'] || []
  @app_base_directory = application_config['app_base_directory']
  @repo_url = application_config['repo_url']
  @services = load_services
end

Instance Attribute Details

#app_base_directoryObject

Returns the value of attribute app_base_directory.



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

def app_base_directory
  @app_base_directory
end

#base_branchObject

Returns the value of attribute base_branch.



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

def base_branch
  @base_branch
end

#files_to_skipObject

Returns the value of attribute files_to_skip.



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

def files_to_skip
  @files_to_skip
end

#repo_urlObject

Returns the value of attribute repo_url.



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

def repo_url
  @repo_url
end

#servicesObject

Returns the value of attribute services.



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

def services
  @services
end

#verboseObject

Returns the value of attribute verbose.



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

def verbose
  @verbose
end