Class: Vkhal::CLI
- Inherits:
-
Object
- Object
- Vkhal::CLI
- Defined in:
- lib/vkhal/cli.rb
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
A new instance of CLI.
- #perform ⇒ Object
Constructor Details
#initialize ⇒ CLI
Returns a new instance of CLI.
3 4 5 |
# File 'lib/vkhal/cli.rb', line 3 def initialize @options = end |
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/vkhal/cli.rb', line 7 def perform if @options[:khal] ks = KhalService.new(file: @options[:khal]) ks.import! elsif @options[:show] p = Presenter.new(events: events_parse(@options[:show])) p.display end end |