class Librato::Cli::Pull

Public Instance Methods

run() click to toggle source
# File lib/librato/cli/pull.rb, line 4
def run
  clear_charts
  write_charts
end

Private Instance Methods

clear_charts() click to toggle source
# File lib/librato/cli/pull.rb, line 11
def clear_charts
  store.clear
end
write_charts() click to toggle source
# File lib/librato/cli/pull.rb, line 15
def write_charts
  space.charts.each do |chart|
    store.write(chart.data)
  end
end