Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/perron/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def additional_routes
end

def deploy
Perron.deprecator.deprecation_warning(:deploy, "Perron.configuration.deploy is deprecated and its behavior will change in a future 1.x release (target: 1.3.0).")

@deploy ||= ActiveSupport::OrderedOptions.new.tap do |config|
def config.method_missing(method_name, *args, &block)
if method_name.to_s.end_with?("=")
Expand Down
2 changes: 1 addition & 1 deletion lib/perron/deprecator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Perron
def self.deprecator
@deprecator ||= ActiveSupport::Deprecation.new("1.0", "Perron")
@deprecator ||= ActiveSupport::Deprecation.new("1.3.0", "Perron")
end
end
3 changes: 0 additions & 3 deletions lib/perron/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
say "Create content data directory"
copy_file "#{__dir__}/install/README.md", "app/content/data/README.md"

say "Create deploy configuration"
copy_file "#{__dir__}/install/deploy.yml.erb", "config/deploy.yml.erb"

say "Add Markdown gem options to Gemfile"
append_to_file "Gemfile", <<~RUBY

Expand Down
4 changes: 4 additions & 0 deletions lib/perron/tasks/deploy.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace :perron do
desc "Deploy static site using Beam Up"
task deploy: :environment do
Perron.deprecator.deprecation_warning(:deploy, "The `perron:deploy` task is deprecated and its behavior will change in a future 1.x release (target: 1.3.0). See https://perron.railsdesigner.com/docs/deploy/ for updates.")

begin
require "beam_up"
rescue LoadError
Expand Down Expand Up @@ -37,6 +39,8 @@ namespace :perron do
namespace :deploy do
desc "Initialize deploy configuration with Beam Up"
task :init, [:provider] do |task, arguments|
Perron.deprecator.deprecation_warning(:deploy, "The `perron:deploy:init` task is deprecated and its behavior will change in a future 1.x release (target: 1.3.0). See https://perron.railsdesigner.com/docs/deploy/ for updates.")

begin
require "beam_up"
rescue LoadError
Expand Down
Loading