Sha256: f4ec96ff55ce93fa97eac260f76c27e3c3668d1c6fc8b3e14f4b7fa46488a85a
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
$:.unshift(File.expand_path('..', __FILE__)) require 'hazel/version' require 'rubygems' require 'thor' module Hazel class CLI < Thor include Thor::Base include Thor::Actions desc 'setup [PATH]', 'Setup a new Hazel instance' def setup(path = "hazel") if File.exists? path puts "#{path} already exists. Exiting." else app_files = File.expand_path('../../../app', __FILE__) Hazel::CLI.source_root(app_files) directory(app_files, path) end end desc :version, "The current version number (#{VERSION::STRING})" def version puts VERSION::STRING end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hazel-0.0.1 | lib/hazel/cli.rb |