This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |