Skip to content

Instantly share code, notes, and snippets.

@tonyomendoza
Created July 10, 2018 01:57
Show Gist options
  • Select an option

  • Save tonyomendoza/5c485bb4673ab549e0a8c707d2671d08 to your computer and use it in GitHub Desktop.

Select an option

Save tonyomendoza/5c485bb4673ab549e0a8c707d2671d08 to your computer and use it in GitHub Desktop.
Terminal Incantation for adding Los Angeles to the Citygram server
Publisher.create! do |pub|
pub.title = "Building Permits"
pub.endpoint = "https://citygram-los-angeles-registry.herokuapp.com/los-angeles-building-permits"
pub.active = true
pub.visible = true
pub.city = "Los Angeles"
pub.icon = "building-permits.png"
pub.state = "CA"
pub.description = "Los Angeles"
pub.tags = ["los-angeles"]
end
Publisher.create! do |pub|
pub.title = "LAX Road Closures"
pub.endpoint = "https://citygram-los-angeles-registry.herokuapp.com/los-angeles-lax-road-closures"
pub.active = true
pub.visible = true
pub.city = "Los Angeles"
pub.icon = "cone.png"
pub.state = "CA"
pub.description = "Los Angeles"
pub.tags = ["los-angeles"]
end
Publisher.create! do |pub|
pub.title = "Metro (Bus)"
pub.endpoint = "https://citygram-los-angeles-registry.herokuapp.com/los-angeles-metro"
pub.active = true
pub.visible = true
pub.city = "Los Angeles"
pub.icon = "la/bus.png"
pub.state = "CA"
pub.description = "Los Angeles"
pub.tags = ["los-angeles"]
end
Publisher.create! do |pub|
pub.title = "Metro Rail"
pub.endpoint = "https://citygram-los-angeles-registry.herokuapp.com/los-angeles-metro-rail"
pub.active = true
pub.visible = true
pub.city = "Los Angeles"
pub.icon = "la/train.png"
pub.state = "CA"
pub.description = "Los Angeles"
pub.tags = ["los-angeles"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment