Sha256: 5e40c34852135b4faaa8ce167b8fa04f91a5f240adae512848c60804a1fbd67e

Contents?: true

Size: 722 Bytes

Versions: 11

Compression:

Stored size: 722 Bytes

Contents

require 'thor'
require 'high_five/config'

module HighFive
  class Cli < Thor
    include Thor::Actions
    include HighFive::InitTask
    include HighFive::DeployTask
    include HighFive::AndroidTasks
    include HighFive::DistTask
    # source root path for Thor::Actions commands

    class_option :version, type: :boolean, desc: "Print version and ext", aliases: "-v"
    def initialize(*args)
      super
      if options[:version]
        puts "HighFive #{HighFive::VERSION}" 
        Process.exit(0)
      end
    end
   
    private
    def base_config
      begin 
        @base_config ||= HighFive::Config.load
      rescue StandardError => e
        say e.message, :red
        exit
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
high_five-0.2.10 lib/high_five/cli.rb
high_five-0.2.9 lib/high_five/cli.rb
high_five-0.2.8 lib/high_five/cli.rb
high_five-0.2.7 lib/high_five/cli.rb
high_five-0.2.6 lib/high_five/cli.rb
high_five-0.2.5 lib/high_five/cli.rb
high_five-0.2.4 lib/high_five/cli.rb
high_five-0.2.3 lib/high_five/cli.rb
high_five-0.2.2 lib/high_five/cli.rb
high_five-0.2.1 lib/high_five/cli.rb
high_five-0.2.0 lib/high_five/cli.rb