Sha256: a9fef552eefcf2dbabeb9196816008702975ef1f41b705502a164d2d5d5378bf

Contents?: true

Size: 787 Bytes

Versions: 7

Compression:

Stored size: 787 Bytes

Contents

require 'thor'
require 'high_five/deploy_task'
require 'high_five/init_task'
require 'high_five/android_tasks'
require 'high_five/config'

module HighFive
  class Cli < Thor
    include Thor::Actions
    include HighFive::InitTask
    include HighFive::DeployTask
    include HighFive::AndroidTasks
    # 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

7 entries across 7 versions & 1 rubygems

Version Path
high_five-0.1.5 lib/high_five/cli.rb
high_five-0.1.4 lib/high_five/cli.rb
high_five-0.1.3 lib/high_five/cli.rb
high_five-0.1.2 lib/high_five/cli.rb
high_five-0.1.1 lib/high_five/cli.rb
high_five-0.1.0 lib/high_five/cli.rb
high_five-0.0.8 lib/high_five/cli.rb