capistrano-mailgun 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Mailgun
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -42,23 +42,26 @@ module Capistrano
42
42
  end
43
43
  end
44
44
 
45
- Capistrano::Configuration.instance.load do
46
- Capistrano.plugin :mailgun, Capistrano::Mailgun
45
+ if Capistrano::Configuration.instance
46
+ Capistrano::Configuration.instance.load do
47
+ Capistrano.plugin :mailgun, Capistrano::Mailgun
47
48
 
48
- set(:mailgun_subject) { "[Deployment] #{ application.capitalize } completed" }
49
+ set(:mailgun_subject) { "[Deployment] #{ application.capitalize } completed" }
49
50
 
50
- set(:mailgun_api_key) { abort "Please set mailgun_api_key accordingly" }
51
- set(:mailgun_domain) { abort "Please set mailgun_domain accordingly" }
52
- set(:mailgun_from) { abort "Please set mailgun_from to your desired From field" }
53
- set(:mailgun_recipients) { abort "Please specify mailgun_recipients" }
54
- set(:mailgun_recipient_domain) { abort "Please set mailgun_recipient_domain accordingly" }
51
+ set(:mailgun_api_key) { abort "Please set mailgun_api_key accordingly" }
52
+ set(:mailgun_domain) { abort "Please set mailgun_domain accordingly" }
53
+ set(:mailgun_from) { abort "Please set mailgun_from to your desired From field" }
54
+ set(:mailgun_recipients) { abort "Please specify mailgun_recipients" }
55
+ set(:mailgun_recipient_domain) { abort "Please set mailgun_recipient_domain accordingly" }
55
56
 
56
- set(:deployer_username) do
57
- if fetch(:scm, nil).to_sym == :git
58
- `git config user.name`.chomp
59
- else
60
- `whoami`.chomp
57
+ set(:deployer_username) do
58
+ if fetch(:scm, nil).to_sym == :git
59
+ `git config user.name`.chomp
60
+ else
61
+ `whoami`.chomp
62
+ end
61
63
  end
64
+
62
65
  end
63
66
 
64
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-mailgun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: