class Algo::Cli

Public Instance Methods

apply(inventry) click to toggle source
# File lib/algo/cli.rb, line 11
def apply inventry
  Algo::Docker.url = options[:host] if options[:host]
  Algo::Docker.options = docker_opts if docker_opts.present?
  configuration = Algo::Dsl.load({}, inventry)
  Algo::Runner::Apply.call configuration, options
end
rm(inventry) click to toggle source
# File lib/algo/cli.rb, line 25
def rm inventry
  Algo::Docker.url = options[:host] if options[:host]
  Algo::Docker.options = docker_opts if docker_opts.present?
  configuration = Algo::Dsl.load({}, inventry)
  Algo::Runner::Rm.call configuration, options
end

Private Instance Methods

docker_opts() click to toggle source
# File lib/algo/cli.rb, line 34
def docker_opts
  options.slice(:client_key, :client_sert, :ssl_ca_file, :scheme)
end