Sha256: 977a4ba486d72cd566f2826472ea5d13881a99031f61b19495888e989968fd7f
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
module Redmine module Cli class Issue < ActiveResource::Base def self.config @config ||= Thor::CoreExt::HashWithIndifferentAccess.new(YAML.load_file(File.expand_path("~/.redmine"))) rescue Errno::ENOENT puts "You need to create the file .redmine in your home with your username, password and url" exit(1) end self.site = config.url self.user = config.username self.password = config.password end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redmine-cli-0.1.0 | lib/redmine-cli/issue.rb |
redmine-cli-0.0.1 | lib/redmine-cli/issue.rb |