Skip to content

Commit

Permalink
Neighborhood: Delete dead Client-based Blueprint. (#1149)
Browse files Browse the repository at this point in the history
`Refactor`: Delete dead `Client`-based Blueprints.

- #476
- #890

This was put in place to reduce cost-of-setup, but is no longer
necessary.
  • Loading branch information
zspencer committed Mar 2, 2023
1 parent baeb0dc commit a61b277
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
26 changes: 0 additions & 26 deletions app/models/blueprint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
class Blueprint
attr_accessor :attributes

def self.prepare_clients!
CLIENTS.each do |client_attributes|
Blueprint.new(client_attributes).find_or_create!
end
end

def initialize(attributes)
@attributes = attributes
end
Expand Down Expand Up @@ -156,24 +150,4 @@ def space_attributes
]
}
}.with_indifferent_access

# @todo migrate this to a private configuration file!
CLIENTS = [{
client: {
name: "Zinc",
space: {
name: "Convene",
entrance: "landing-page",
members: [{email: "zee@zinc.coop"}],
rooms: [{
name: "Landing Page",
access_level: :unlocked,
publicity_level: :unlisted,
furniture_placements: {
markdown_text_block: {}
}
}]
}
}
}].freeze
end
1 change: 0 additions & 1 deletion lib/tasks/release.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ namespace :release do
desc "Ensures any post-release / pre-deploy behavior has occurred"
task after_build: [:environment, "db:prepare"] do
SystemTestSpace.prepare
Blueprint.prepare_clients!
end
end

0 comments on commit a61b277

Please sign in to comment.