Sha256: 65f1649ec99d4f4360320eb3e47a0f3efe585e83a0f74b1d6fdb38fefe102915
Contents?: true
Size: 679 Bytes
Versions: 9
Compression:
Stored size: 679 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 end end end
Version data entries
9 entries across 9 versions & 1 rubygems