Sha256: 3c457a6fc5401cb40f21a8c68bebbda11f3ed0a906fc45a50f3b9d7b119cf1da
Contents?: true
Size: 602 Bytes
Versions: 7
Compression:
Stored size: 602 Bytes
Contents
require 'yaml' # Configuration variables and defaults module SafePusher class Configuration # The configuration singleton attr_accessor :files_to_skip, :app_base_directory, :repo_url def initialize application_config = if File.exist?('safe_pusher.yml') YAML.load_file('safe_pusher.yml') else {} end @files_to_skip = application_config['files_to_skip'] || [] @app_base_directory = application_config['app_base_directory'] @repo_url = application_config['repo_url'] end end end
Version data entries
7 entries across 7 versions & 1 rubygems