class Librato::Cli::Push
Public Instance Methods
run()
click to toggle source
# File lib/librato/cli/push.rb, line 6 def run remove_charts push_charts end
Private Instance Methods
push_charts()
click to toggle source
# File lib/librato/cli/push.rb, line 20 def push_charts store.read.each do |data| puts "Pushing chart #{data['name'].inspect} to #{account}." Chart.new(client, space, data).push end end
remove_charts()
click to toggle source
# File lib/librato/cli/push.rb, line 13 def remove_charts space.charts.each do |chart| puts "Removing existing chart #{chart.name.inspect} on #{account}" Chart.new(client, space, chart.data).delete end end