Class: ConnpassToCalendar::Cli
- Inherits:
-
Thor
- Object
- Thor
- ConnpassToCalendar::Cli
- Defined in:
- lib/connpass_to_calendar/cli.rb
Instance Method Summary collapse
Instance Method Details
#config(key, value = nil) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# 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 ⇒ Object
18 19 20 |
# File 'lib/connpass_to_calendar/cli.rb', line 18 def put Command.put_on_event() end |