Class: Aspen::CLI::Commands::BuildSteps::CheckAspenProject
- Defined in:
- lib/aspen/cli/commands/build_steps.rb
Instance Method Summary collapse
-
#call ⇒ Object
Check if we’re in an Aspen project, and stop if not.
Methods inherited from BuildStep
Instance Method Details
#call ⇒ Object
Check if we’re in an Aspen project, and stop if not.
33 34 35 36 37 38 |
# File 'lib/aspen/cli/commands/build_steps.rb', line 33 def call(*) super unless @files.exist?('.aspen') raise ArgumentError, "Must be within an Aspen project to run `build`" end end |