class ConnpassToCalendar::Cli
Public Instance Methods
config(key, value = nil)
click to toggle source
# File lib/connpass_to_calendar/cli.rb, line 24 def config(key, value = nil) if Models::Env::KEYS_LIST.include? key if value Command.set_config(key, value) else Command.show_config(key) end elsif key == "--list" && value == nil Command.list_config() else puts "error: key does not contain a section: #{key}" end end
put()
click to toggle source
# File lib/connpass_to_calendar/cli.rb, line 18 def put Command.put_on_event(options) end