lib/site_hook/cli.rb in site_hook-0.6.4 vs lib/site_hook/cli.rb in site_hook-0.6.7

- old
+ new

@@ -39,18 +39,15 @@ say "Gem Author: #{SiteHook::Gem::Info.author}" say "Gem Version: v#{SiteHook::VERSION}" end method_option(:log_levels, type: :hash, banner: 'LEVELS', default: SiteHook.log_levels) - desc 'start', 'Start SiteHook' - def start - SiteHook.mklogdir unless Pathname(Dir.home).join('.jph', 'logs').exist? + SiteHook.mklogdir unless SiteHook::Gem::Paths.logs.exist? SiteHook::Webhook.run! end - desc 'config SUBCOMMAND [OPTIONS]', 'Configure site_hook options' subcommand('config', SiteHook::ConfigClass) end end