module Blimpy::Helpers::State

Public Instance Methods

ensure_state_folder() click to toggle source
# File lib/blimpy/helpers/state.rb, line 8
def ensure_state_folder
  unless File.exist? state_folder
    Dir.mkdir(state_folder)
  end
end
state_file() click to toggle source
# File lib/blimpy/helpers/state.rb, line 14
def state_file
  raise NotImplementedError, '#state_file should be implemented in a consumer'
end
state_folder() click to toggle source
# File lib/blimpy/helpers/state.rb, line 4
def state_folder
  File.join(Dir.pwd, '.blimpy.d')
end