Module: Blimpy::Helpers::State

Included in:
Box, Fleet
Defined in:
lib/blimpy/helpers/state.rb

Instance Method Summary collapse

Instance Method Details

#ensure_state_folderObject



8
9
10
11
12
# File 'lib/blimpy/helpers/state.rb', line 8

def ensure_state_folder
  unless File.exist? state_folder
    Dir.mkdir(state_folder)
  end
end

#state_fileObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/blimpy/helpers/state.rb', line 14

def state_file
  raise NotImplementedError, '#state_file should be implemented in a consumer'
end

#state_folderObject



4
5
6
# File 'lib/blimpy/helpers/state.rb', line 4

def state_folder
  File.join(Dir.pwd, '.blimpy.d')
end