blazing-passenger 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,4 +17,6 @@ Gem::Specification.new do |s|
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
+
21
+ s.add_dependency "httparty"
20
22
  end
@@ -1,9 +1,16 @@
1
- module Blazing
2
- module Passenger
3
- class Kickstart < Blazing::Recipe
4
- def run
5
- # system 'touch tmp/restart.txt'
6
- end
1
+ require 'httparty'
2
+
3
+ class Blazing::Recipe::PassengerKickstart < Blazing::Recipe
4
+
5
+ def run
6
+ if options[:url]
7
+ info "Kickstarting #{options[:url]}"
8
+ HTTParty.get(options[:url])
9
+ else
10
+ error "No URL was specified for Passenger Kickstart"
7
11
  end
12
+ rescue
13
+ error "Unable to perform a GET request on #{options[:url]}"
8
14
  end
15
+
9
16
  end
@@ -1,15 +1,9 @@
1
- module Blazing
2
- module Passenger
3
- class Restart < Blazing::Recipe
1
+ class Blazing::Recipe::PassengerRestart < Blazing::Recipe
4
2
 
5
- def initialize(name, options = {})
6
- super(name, options)
7
- end
8
-
9
- def run
10
- system 'touch tmp/restart.txt'
11
- end
12
-
13
- end
3
+ def run
4
+ info 'Restarting passenger'
5
+ Dir.mkdir('tmp') unless File.exists? 'tmp'
6
+ system 'touch tmp/restart.txt'
14
7
  end
8
+
15
9
  end
@@ -1,5 +1,5 @@
1
1
  module Blazing
2
2
  module Passenger
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blazing-passenger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 27
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 3
10
- version: 0.0.3
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Felipe Kaufmann
@@ -15,10 +15,22 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-20 00:00:00 +02:00
19
- default_executable:
20
- dependencies: []
21
-
18
+ date: 2011-10-24 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ none: false
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 3
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ requirement: *id001
31
+ prerelease: false
32
+ name: httparty
33
+ type: :runtime
22
34
  description: A collection of blazing recipes for passenger
23
35
  email:
24
36
  - felipekaufmann@gmail.com
@@ -37,7 +49,6 @@ files:
37
49
  - lib/blazing-passenger/recipes/passenger_kickstart.rb
38
50
  - lib/blazing-passenger/recipes/passenger_restart.rb
39
51
  - lib/blazing-passenger/version.rb
40
- has_rdoc: true
41
52
  homepage: https://github.com/effkay/blazing-passenger
42
53
  licenses: []
43
54
 
@@ -67,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
78
  requirements: []
68
79
 
69
80
  rubyforge_project: blazing-passenger
70
- rubygems_version: 1.3.7
81
+ rubygems_version: 1.8.10
71
82
  signing_key:
72
83
  specification_version: 3
73
84
  summary: blazing recipes for passenger