capistrano-ext-projectdx 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,8 @@
1
1
  namespace :misc do
2
+
2
3
  def send_to_campfire(message)
4
+ campfire_host=fetch(:campfire_host,'')
5
+ return nil if campfire_host.empty?
3
6
  begin
4
7
  gem 'tinder'
5
8
  rescue Gem::LoadError
@@ -21,10 +21,8 @@ Capistrano::Configuration.instance.load do
21
21
 
22
22
  def valid_commit?(commit)
23
23
  return false if commit.nil?
24
- if [ :production ].include? stage
25
- return false unless commit_in_remote_branch?(commit,'production')
26
- elsif [ :custbeta ].include? stage
27
- return false unless commit_in_remote_branch?(commit,'custbeta')
24
+ if branch_stages.include? stage.to_s
25
+ return false unless commit_in_remote_branch?(commit,stage)
28
26
  end
29
27
  return true
30
28
  end
@@ -15,13 +15,6 @@ Capistrano::Configuration.instance.load do
15
15
  desc "Restart Passenger"
16
16
  task :restart, :rols => :app do
17
17
  run "touch #{current_path}/tmp/restart.txt"
18
- if [ :production ].include? stage
19
- run "curl -s -o /dev/null http://sonomacountyenergyaction.org/customers/2/geometries;true"
20
- run "curl -s -o /dev/null http://sonomacountyenergyaction.org/customers/1/geometries;true"
21
- else
22
- run "curl -s -o /dev/null http:/sonoma.`hostname`/customers/2/geometries;true"
23
- run "curl -s -o /dev/null http:/sonoma.`hostname`/customers/1/geometries;true"
24
- end
25
18
  end
26
19
  end
27
20
  end
@@ -45,7 +45,6 @@ Capistrano::Configuration.instance.load do
45
45
  run "mkdir -p #{deploy_to}/shared/log/old"
46
46
  run "mkdir -p #{deploy_to}/shared/pids"
47
47
  run "mkdir -p #{deploy_to}/releases"
48
- run "mkdir -p '#{shared_path}/config/payment_gateways'"
49
48
  end
50
49
 
51
50
  desc "remove old submodules from vendors directory"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-ext-projectdx
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Darrell Fuhriman