Class: Hyrb::Tasks::Hipchat::ShowRooms

Inherits:
Hyrb::Task
  • Object
show all
Defined in:
lib/hyrb/tasks/hipchat.rb

Instance Attribute Summary

Attributes inherited from Hyrb::Task

#env, #pipeline

Instance Method Summary collapse

Methods inherited from Hyrb::Task

depends, #initialize, prompt, prompts, #run_before

Constructor Details

This class inherits a constructor from Hyrb::Task

Instance Method Details

#run(env) ⇒ Object



31
32
33
# File 'lib/hyrb/tasks/hipchat.rb', line 31

def run(env)
  say env.hipchat_rooms.map { |r| "#{r.name} (#{r.room_id})" }.to_yaml
end