module OneOff::Environments

Public Instance Methods

call() click to toggle source
# File lib/one_off/environments.rb, line 8
def call
  perform if Array.wrap(self.class.__environments).include?(Rails.env)
end
environments(*envs) click to toggle source
# File lib/one_off/environments.rb, line 20
def environments(*envs)
  @__environments = envs.map(&:to_s)
end
perform() click to toggle source
# File lib/one_off/environments.rb, line 12
def perform
  raise NotImplementedError
end