lib/settings.rb in trollolo-0.0.3 vs lib/settings.rb in trollolo-0.0.4

- old
+ new

@@ -15,20 +15,25 @@ # To contact SUSE about this file by physical or electronic mail, # you may find current contact information at www.suse.com class Settings - attr_accessor :verbose, :raw - attr_accessor :developer_public_key, :member_token + attr_accessor :developer_public_key, :member_token, :verbose, :raw, + :not_done_columns, :todo_column, :done_column_name_regex, + :todo_column_name_regex def initialize config_file_path @config_file_path = config_file_path if File.exists? config_file_path @config = YAML.load_file(config_file_path) if @config - @developer_public_key = @config["developer_public_key"] - @member_token = @config["member_token"] + @developer_public_key = @config["developer_public_key"] + @member_token = @config["member_token"] + @not_done_columns = @config["not_done_columns"].freeze || ["Sprint Backlog", "Doing"] + @todo_column = @config["todo_column"].freeze + @done_column_name_regex = @config["done_column_name_regex"].freeze || /\ADone Sprint (\d+)\Z/ + @todo_column_name_regex = @config["todo_column_name_regex"].freeze || /\ATo Do\Z/ else raise "Couldn't read config data from '#{config_file_path}'" end end