Sha256: 320173326fa3689efd06cf4e6174a55862317c5b7b3ad49c54eb8bd9b82e62fc
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
require 'head_chef' module HeadChef class Cli < Thor # This is the main entry point for CLI. # It wraps the Thor start command to provide error handling. class << self def start(given_args=ARGV, config={}) begin super HeadChef.cleanup rescue Berkshelf::BerkshelfError => e HeadChef.ui.error e Kernel.exit(e.status_code) rescue Ridley::Errors::HTTPError => e HeadChef.ui.error "#{e.class}: #{e} \nEndpoint: #{e.env[:url]}" Kernel.exit(1337) end end end namespace 'head_chef' desc "env", "Sync and diff branches with Chef enviroments" subcommand "env", Env end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
head_chef-0.1.1 | lib/head_chef/cli.rb |
head_chef-0.1.0 | lib/head_chef/cli.rb |