Class: Bashly::Commands::Base
- Inherits:
-
MisterBin::Command
- Object
- MisterBin::Command
- Bashly::Commands::Base
show all
- Includes:
- AssetHelper
- Defined in:
- lib/bashly/commands/base.rb
Instance Method Summary
collapse
#asset, #asset_content
Instance Method Details
#config_validator ⇒ Object
13
14
15
|
# File 'lib/bashly/commands/base.rb', line 13
def config_validator
@config_validator ||= ConfigValidator.new config
end
|
#validate_config ⇒ Object
17
18
19
|
# File 'lib/bashly/commands/base.rb', line 17
def validate_config
config_validator.validate
end
|
#with_valid_config ⇒ Object
21
22
23
24
|
# File 'lib/bashly/commands/base.rb', line 21
def with_valid_config
validate_config
yield
end
|