Class: Bashly::Commands::Generate
- Defined in:
- lib/bashly/commands/generate.rb
Instance Attribute Summary collapse
-
#watching ⇒ Object
readonly
Returns the value of attribute watching.
Instance Method Summary collapse
Methods inherited from Base
#config, #config_validator, #validate_config, #with_valid_config
Methods included from AssetHelper
Instance Attribute Details
#watching ⇒ Object (readonly)
Returns the value of attribute watching.
29 30 31 |
# File 'lib/bashly/commands/generate.rb', line 29 def watching @watching end |
Instance Method Details
#run ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/bashly/commands/generate.rb', line 31 def run Settings.env = args['--env'] if args['--env'] @watching = args['--watch'] generate watch if watching end |