class DEIS::Deis

Public Instance Methods

bootstrap(action="all") click to toggle source
# File lib/rdeis/deis.rb, line 156
def bootstrap(action="all")
  self.updgrade
  if DEIS::Bootstrap.method_defined? action
    bootstrap = DEIS::Bootstrap.new(options)
    bootstrap.send(action)
  else
    say "invalid option", :red
  end
end
config(action="list", *vars) click to toggle source
# File lib/rdeis/deis.rb, line 41
def config(action="list", *vars)
  self.bootstrap
  if DEIS::Config.method_defined? action
    config = DEIS::Config.new(options)
    config.send(action, vars)
  else
    say "invalid option", :red
  end
end
deploy(action="all") click to toggle source
# File lib/rdeis/deis.rb, line 125
def deploy(action="all")
  self.bootstrap
  if DEIS::Deploy.method_defined? action
    deploy = DEIS::Deploy.new(options)
    deploy.send(action)
  else
    say "invalid option", :red
  end
end
destroy() click to toggle source
# File lib/rdeis/deis.rb, line 178
def destroy
  run = DEIS::Destroy.new(options)
  run.all
end
domains(action="list", *domains) click to toggle source
# File lib/rdeis/deis.rb, line 76
def domains(action="list", *domains)
  self.bootstrap
  if DEIS::Domains.method_defined? action
    domain = DEIS::Domains.new(options)
    domain.send(action, domains)
  else
    say "invalid option", :red
  end
end
scale(*vars) click to toggle source
# File lib/rdeis/deis.rb, line 145
def scale(*vars)
  self.bootstrap
  if DEIS::Deploy.method_defined? "scale"
    deploy = DEIS::Deploy.new(options)
    deploy.send("scale", vars)
  else
    say "invalid option", :red
  end
end
upgrade(from=nil) click to toggle source
# File lib/rdeis/deis.rb, line 167
def upgrade(from=nil)
  run = DEIS::Upgrade.new(options, from)
  run.all
end
version() click to toggle source
# File lib/rdeis/deis.rb, line 173
def version
  say "rdeis #{DEIS::VERSION}"
end