Class: Serverkit::Actions::Inspect

Inherits:
Base
  • Object
show all
Defined in:
lib/serverkit/actions/inspect.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Serverkit::Actions::Base

Instance Method Details

#call ⇒ Object



7
8
9
10
11
12
13
# File 'lib/serverkit/actions/inspect.rb', line 7

def call
  if recipe.valid?
    puts JSON.pretty_generate(recipe.to_hash)
  else
    abort_with_errors
  end
end