Class: SafePusher::Configuration
- Inherits:
-
Object
- Object
- SafePusher::Configuration
- Defined in:
- lib/safe_pusher/configuration.rb
Instance Attribute Summary collapse
-
#app_base_directory ⇒ Object
Returns the value of attribute app_base_directory.
-
#base_branch ⇒ Object
Returns the value of attribute base_branch.
-
#files_to_skip ⇒ Object
Returns the value of attribute files_to_skip.
-
#repo_url ⇒ Object
Returns the value of attribute repo_url.
-
#services ⇒ Object
Returns the value of attribute services.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_directory ⇒ Object
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_branch ⇒ Object
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_skip ⇒ Object
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_url ⇒ Object
Returns the value of attribute repo_url.
3 4 5 |
# File 'lib/safe_pusher/configuration.rb', line 3 def repo_url @repo_url end |
#services ⇒ Object
Returns the value of attribute services.
3 4 5 |
# File 'lib/safe_pusher/configuration.rb', line 3 def services @services end |
#verbose ⇒ Object
Returns the value of attribute verbose.
3 4 5 |
# File 'lib/safe_pusher/configuration.rb', line 3 def verbose @verbose end |