Class: MediumToWebflow::CLI
- Inherits:
-
Thor
- Object
- Thor
- MediumToWebflow::CLI
- Defined in:
- lib/medium_to_webflow/cli.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
56 57 58 |
# File 'lib/medium_to_webflow/cli.rb', line 56 def init create_file([:path], config_template) end |
#sync ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/medium_to_webflow/cli.rb', line 36 def sync load_config if [:config] MediumToWebflow.configure do |config| config.verbose = [:verbose] config.force_update = [:force_update] end MediumToWebflow.sync() rescue Error => e error "Failed to sync: #{e.message}" exit 1 end |