lib/safe_pusher/configuration.rb in safe_pusher-0.2.2 vs lib/safe_pusher/configuration.rb in safe_pusher-0.3.0
- old
+ new
@@ -3,19 +3,21 @@
module SafePusher
class Configuration
# The configuration singleton
attr_accessor :files_to_skip,
:app_base_directory,
- :repo_url
+ :repo_url,
+ :base_branch
def initialize
application_config =
if File.exist?('safe_pusher.yml')
YAML.load_file('safe_pusher.yml')
else
{}
end
+ @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']
end
end