Sha256: 6fbb4be91a694820b2ffbf5436d43cc8743a9c6091dfe5fe0341497790f5c198
Contents?: true
Size: 1017 Bytes
Versions: 3
Compression:
Stored size: 1017 Bytes
Contents
require 'thor' module RedmineCLI module Subcommands # # All methods for working with config file # class Conf < Thor extend Helpers::Output include Helpers::Output include Helpers::Input desc 'init', m('desc.conf.init') def init Config['user'] = ask m('commands.conf.init.enter_user'), default: Config['user'] Config['password'] = ask m('commands.conf.init.enter_password'), default: Config['password'] Config['site'] = ask_url m('commands.conf.init.enter_site'), default: Config['site'] Config['just_created'] = false Config.save puts m(:thank_you) end desc 'status-complete', m('desc.conf.status_complete') def status_complete puts m('commands.conf.status_complete.select_status') Config['statuses'] ||= {} Config['statuses']['complete'] = ask_for_object(RedmineRest::Models::IssueStatus.all).id Config.save puts m(:thank_you) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redmine_cli-0.7.0 | lib/redmine_cli/subcommands/conf.rb |
redmine_cli-0.6.1 | lib/redmine_cli/subcommands/conf.rb |
redmine_cli-0.6.0 | lib/redmine_cli/subcommands/conf.rb |