Skip to content

Commit

Permalink
WIP - Added fix for Zeitwerk::NameError for slackistrano refs #15907
Browse files Browse the repository at this point in the history
  • Loading branch information
AshviniKabadi committed Aug 23, 2024
1 parent 8f56d60 commit 35aa42b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ require "capistrano/bundler"
require "capistrano/passenger"
require 'capistrano/rails'

# Ensure Slackistrano is loaded before custom Slack messaging
require 'slackistrano/capistrano'

# Now load your custom Slack messaging class
require_relative 'lib/slackistrano/custom_slack_messaging'

# require "capistrano/rbenv"
Expand Down
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json-schema (4.3.1)
addressable (>= 2.8)
json-schema (5.0.0)
addressable (~> 2.8)
kaminari (1.2.2)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.2.2)
Expand Down Expand Up @@ -271,10 +271,10 @@ GEM
method_source (1.1.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0806)
mime-types-data (3.2024.0820)
mini_mime (1.1.5)
minitar (1.0.1)
minitest (5.25.0)
minitar (1.0.2)
minitest (5.25.1)
msgpack (1.7.2)
multi_json (1.15.0)
mutex_m (0.2.0)
Expand Down Expand Up @@ -374,7 +374,7 @@ GEM
actionpack (>= 5.2)
railties (>= 5.2)
retriable (3.1.2)
rexml (3.3.5)
rexml (3.3.6)
strscan
rgeo (3.0.1)
rgeo-geojson (2.2.0)
Expand Down
1 change: 1 addition & 0 deletions config/initializers/slackistrano.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'slackistrano/messaging/base'
2 changes: 2 additions & 0 deletions lib/slackistrano/custom_slack_messaging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,6 @@ def deployer
end
end
end
else
puts 'Slackistrano::Messaging is not defined'
end

0 comments on commit 35aa42b

Please sign in to comment.