Class: Aspen::CLI::Commands::BuildSteps::CheckAspenProject

Inherits:
BuildStep
  • Object
show all
Defined in:
lib/aspen/cli/commands/build_steps.rb

Instance Method Summary collapse

Methods inherited from BuildStep

#config, #manifest

Instance Method Details

#callObject

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