class Armada::DeployCli

Public Class Methods

common_options() click to toggle source
# File lib/armada/cli/deploy.rb, line 5
def self.common_options
  option :hosts,            :type => :array,   :aliases => :h, :desc => "The docker host(s) to deploy to. This can be a comma sepearted list."
  option :image,            :type => :string,  :aliases => :i, :desc => "The image to use when deploying"
  option :tag,              :type => :string,  :aliases => :t, :desc => "Which version of the image to use", :lazy_default => "latest"
  option :username,         :type => :string,  :aliases => :u, :desc => "Docker registry username, if specified, --password must also be specified"
  option :password,         :type => :string,  :aliases => :p, :desc => "Docker registry password, if specified, --username must also be specified"
  option :health_check,     :type => :boolean, :aliases => :c, :desc => "Perform health check of container. Default is true", :default => true
  option :env_vars,         :type => :hash,    :aliases => :e, :desc => "Environment Variables to pass into the container"
  option :pull,             :type => :boolean,                 :desc => "Whether to pull the image from the docker registry", :default => true
  option :ssh_gateway,      :type => :string,  :aliases => :G, :desc => "SSH Gateway Host"
  option :ssh_gateway_user, :type => :string,  :aliases => :U, :desc => "SSH Gateway User"
  option :dockercfg,        :type => :string,                  :desc => "Path to dockercfg file, used to authenticate against the docker registry", :default => '~/.dockercfg'
  option :volumes,          :type => :boolean, :aliases => :v, :desc => "Remove the volumes associated with the container.", :default => false
end

Public Instance Methods

parallel(project, environment) click to toggle source
# File lib/armada/cli/deploy.rb, line 23
def parallel(project, environment)
  Armada::Deploy::Parallel.new(project, environment, options).run
end
rolling(project, environment) click to toggle source
# File lib/armada/cli/deploy.rb, line 29
def rolling(project, environment)
  Armada::Deploy::Rolling.new(project, environment, options).run
end