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