Sha256: c4628e904a4f54a6b278212300e0fc1a6faebbda76cd92648e68c01ed76653eb
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
require 'thor' require 'active_resource' module Redmine module Cli class Issue < ActiveResource::Base def self.config @config ||= begin 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" Thor::CoreExt::HashWithIndifferentAccess.new end end self.site = config.url self.user = config.username self.password = config.password end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redmine-cli-0.1.1 | lib/redmine-cli/issue.rb |