Sha256: 6290e03b3996da8471a30c85f3ec742195c0439a561729d5b785af153abdf654
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
# frozen_string_literal: true require 'colorize' require 'thor' require_relative '../configurable' require_relative '../exitable' module Branch module Name module Subcommands class Config < ::Thor include Configurable include Exitable default_task :info desc 'info', 'Displays information about this gem configuration' long_desc <<-LONG_DESC NAME \x5 `branch-name config info` -- Displays information about this gem configuration. SYNOPSIS \x5 branch-name config info LONG_DESC def info if global_config_file? say "Global config file exists: \"#{global_config_file}\"", :green else say "Global config file does not exist at: \"#{global_folder}\"", :yellow end if local_config_file? say "Local config file exists: \"#{local_config_file}\"", :green else say "Local config file does not exist at: \"#{local_folder}\"", :yellow end if system_config_file? say "System config file exists: \"#{system_config_file}\"", :green else say "System config file does not exist at: \"#{system_folder}\"", :yellow end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
branch-name-0.1.0.pre.alpha | lib/branch/name/subcommands/config.rb |