Class: BP::Gem

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/bp/gem.rb

Instance Method Summary collapse

Instance Method Details

#lsObject



23
24
25
# File 'lib/bp/gem.rb', line 23

def ls
  puts GEMS.join "\n"
end

#set_owners(name) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/bp/gem.rb', line 13

def set_owners(name)
  puts "Setting owners for #{name}"
  gems = Gems::Client.new
  STAFF.each do |staff, accounts|
    puts "* #{accounts[:rubygems]}"
    gems.add_owner name, accounts[:rubygems]
  end
end