Module: Redmine::Cli

Defined in:
lib/redmine-cli/cli.rb,
lib/redmine-cli/git.rb,
lib/redmine-cli/config.rb,
lib/redmine-cli/version.rb,
lib/redmine-cli/resources.rb

Defined Under Namespace

Modules: Generators Classes: BaseResource, CLI, Git, Issue, Project, Query, User

Constant Summary collapse

VERSION =
"0.1.5"

Class Method Summary collapse

Class Method Details

.cacheObject



17
18
19
20
21
22
23
# File 'lib/redmine-cli/config.rb', line 17

def cache
  begin
    generic_conf '.redmine_cache'
  rescue Errno::ENOENT
    @cache = Thor::CoreExt::HashWithIndifferentAccess.new
  end
end

.configObject



8
9
10
11
12
13
14
15
# File 'lib/redmine-cli/config.rb', line 8

def config
  begin
    generic_conf '.redmine'
  rescue Errno::ENOENT
    puts "You need to create the file .redmine in your home with your username, password and url"
    exit 1
  end
end