module Terrafying::State

Constants

STATE_FILENAME

Public Class Methods

local(config) click to toggle source
# File lib/terrafying/state.rb, line 17
def self.local(config)
  LocalStateStore.new(config.path)
end
remote(config) click to toggle source
# File lib/terrafying/state.rb, line 21
def self.remote(config)
  Terrafying::DynamoDb::StateStore.new(config.scope)
end
store(config) click to toggle source
# File lib/terrafying/state.rb, line 9
def self.store(config)
  if LocalStateStore.has_local_state?(config)
    local(config)
  else
    remote(config)
  end
end