Class: Blazing::Recipe::PassengerKickstart

Inherits:
Blazing::Recipe
  • Object
show all
Defined in:
lib/blazing-passenger/recipes/passenger_kickstart.rb

Instance Method Summary collapse

Instance Method Details

#run(target_options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/blazing-passenger/recipes/passenger_kickstart.rb', line 6

def run(target_options = {})
  super target_options

  if @options && @options.has_key?(:url)
    info "Kickstarting #{@options[:url]}"
    HTTParty.get(@options[:url])
  else
    error "No URL was specified for Passenger Kickstart"
  end
rescue
  error "Unable to perform a GET request on #{@options[:url]}"
end