capistrano-blaze 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -44,7 +44,7 @@ end
44
44
  To test your configuration, run:
45
45
 
46
46
  ``` shell
47
- $ cap campfire:test
47
+ $ cap campfire:test_config
48
48
  ```
49
49
 
50
50
  ## Todo
@@ -24,6 +24,14 @@ module Capistrano
24
24
  res = Net::HTTP.start("#{@config.account}.campfirenow.com", port, :use_ssl => @config.ssl) do |http|
25
25
  http.request(req)
26
26
  end
27
+
28
+ if res.is_a?(Net::HTTPSuccess)
29
+ puts "Campfire message sent!"
30
+ else
31
+ puts "Campfire communication failed!"
32
+ puts res.inspect
33
+ puts res.body.inspect
34
+ end
27
35
  end
28
36
 
29
37
  def failure(context, exception)
@@ -12,7 +12,8 @@ Capistrano::Configuration.instance(:must_exist).load do
12
12
  Capistrano::Blaze.success(self)
13
13
  end
14
14
 
15
- task :test do
15
+ desc "Sends a test message to Campfire"
16
+ task :test_config do
16
17
  Capistrano::Blaze.test(self)
17
18
  end
18
19
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Blaze
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-blaze
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70295704471820 !ruby/object:Gem::Requirement
16
+ requirement: &70096650930420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.9'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70295704471820
24
+ version_requirements: *70096650930420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: webmock
27
- requirement: &70295704471320 !ruby/object:Gem::Requirement
27
+ requirement: &70096650929920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.8.4
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70295704471320
35
+ version_requirements: *70096650929920
36
36
  description: A simple campfire plugin for capistrano
37
37
  email:
38
38
  - iain@iain.nl
@@ -49,8 +49,8 @@ files:
49
49
  - Rakefile
50
50
  - capistrano-blaze.gemspec
51
51
  - lib/capistrano/blaze.rb
52
+ - lib/capistrano/blaze/recipes.rb
52
53
  - lib/capistrano/blaze/version.rb
53
- - lib/capistrano/recipes.rb
54
54
  - spec/camp_spec.rb
55
55
  homepage: https://github.com/iain/capistrano-blaze
56
56
  licenses: []