Class: Capricorn::Apps::Satellite

Inherits:
Thor
  • Object
show all
Defined in:
lib/capricorn/apps/satellite.rb

Instance Method Summary collapse

Methods inherited from Thor

namespace, namespace=

Instance Method Details

#install(domain) ⇒ Object



20
21
22
# File 'lib/capricorn/apps/satellite.rb', line 20

def install(domain)
  Capricorn.client(options[:token]).install_satellite(domain)
end

#listObject



9
10
11
12
13
14
15
16
# File 'lib/capricorn/apps/satellite.rb', line 9

def list
  Capricorn.client(options[:token]).satellites.each do |sat|
    puts sat.domain
    sat.engines.each do |name, options|
      puts "- #{name} #{options.inspect}"
    end
  end
end

#uninstall(domain) ⇒ Object



26
27
28
# File 'lib/capricorn/apps/satellite.rb', line 26

def uninstall(domain)
  Capricorn.client(options[:token]).uninstall_satellite(domain)
end