Class: Blazing::Recipe::PassengerKickstart
- Inherits:
-
Blazing::Recipe
- Object
- Blazing::Recipe
- Blazing::Recipe::PassengerKickstart
- 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( = {}) super 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 |