class Bashly::Commands::Base
Public Instance Methods
config()
click to toggle source
# File lib/bashly/commands/base.rb, line 9 def config @config ||= Config.new Settings.config_path end
config_validator()
click to toggle source
# File lib/bashly/commands/base.rb, line 13 def config_validator @config_validator ||= ConfigValidator.new config end
validate_config()
click to toggle source
# File lib/bashly/commands/base.rb, line 17 def validate_config config_validator.validate end
with_valid_config() { || ... }
click to toggle source
# File lib/bashly/commands/base.rb, line 21 def with_valid_config validate_config yield end