Skip to content

Instantly share code, notes, and snippets.

# Just an abstracted hash data store
# For now can be backed by session data, later on maybe redis
class Store
attr_reader :data
delegate :[], to: :data
def initialize(data)
@data = data
end
dell-linux-assistant:
Installed: 2.2.0211
Candidate: 2.2.0211
Version table:
*** 2.2.0211 500
500 http://ppa.launchpad.net/somerville-dla-team/ppa/ubuntu bionic/main amd64 Packages
100 /var/lib/dpkg/status
dell-service-meta:
Installed: 7ubuntu3
Rails.application.routes.draw do
resources :registration_steps, only: %i(edit update)
end
class Step
attr_reader :name, :attributes, :condition
def initialize(name, attributes, &condition)
@name, @attributes = name, attributes
@condition = condition || true