Module: Blimpy::Helpers::State
Instance Method Summary collapse
Instance Method Details
#ensure_state_folder ⇒ Object
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_file ⇒ Object
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_folder ⇒ Object
4 5 6 |
# File 'lib/blimpy/helpers/state.rb', line 4 def state_folder File.join(Dir.pwd, '.blimpy.d') end |