Sha256: 757c4e39f4678fc5997e444383b2c2cb481bfcdbe54f627e94a23a5a3fb5ceae
Contents?: true
Size: 1.24 KB
Versions: 26
Compression:
Stored size: 1.24 KB
Contents
Capricorn.runtime_gem('thor', Capricorn::THOR_VERSION) module Capricorn module Apps # :nodoc: class Engines < Thor desc 'install DOMAIN NAME', 'install an engine' method_options :version => :required, :lib => :optional, :source => :optional, :token => :optional def install(domain, name) desc = { :version => options[:version] } desc[:lib] = options[:lib] if options[:lib] desc[:source] = options[:source] if options[:source] Capricorn.client(options[:token]).install_engine(domain, name, desc) end desc 'update DOMAIN NAME', 'update an engine' method_options :version => :required, :lib => :optional, :source => :optional, :token => :optional def update(domain, name) desc = { :version => options[:version] } desc[:lib] = options[:lib] if options[:lib] desc[:source] = options[:source] if options[:source] Capricorn.client(options[:token]).update_engine(domain, name, desc) end desc 'uninstall DOMAIN NAME', 'uninstall an engine' method_options :token => :optional def uninstall(domain, name) Capricorn.client(options[:token]).uninstall_engine(domain, name) end end end end
Version data entries
26 entries across 26 versions & 2 rubygems