class Takeltau::CLI

takeltau

Attributes

bash_fylla[R]

@return [String] bash completion code

Public Class Methods

exit_on_failure?() click to toggle source

Behave as expected by correctly reporting failure in exit status. See github.com/erikhuda/thor/wiki/Making-An-Executable

# File lib/takeltau.rb, line 253
def self.exit_on_failure?
  true
end
new(args = [], local_options = {}, configuration = {}) click to toggle source

Initialize takelage cli.

Calls superclass method
# File lib/takeltau.rb, line 114
def initialize(args = [], local_options = {}, configuration = {})
  # Initialize thor parent class
  super args, local_options, configuration

  # Initialize global singleton log
  initialize_logging options[:loglevel].to_s.upcase

  # Initialize global singleton config
  initialize_config

  # Initialize global singleton project
  initialize_project

  # Set defaults
  @docker_daemon_running = false
  @command_available_docker = false
  @mutagen_daemon_available = false
  @command_available_mutagen = false

  # fylla bash completion code
  @bash_fylla = Fylla.bash_completion self
end

Public Instance Methods

clean() click to toggle source

takeltau clean: {takelage::DockerContainer#clean}

# File lib/takeltau.rb, line 201
def clean
  Takeltau::DockerContainer.new.clean
end
config() click to toggle source

takeltau config: {takelage::SelfConfig#active}

# File lib/takeltau.rb, line 171
def config
  Takeltau::SelfConfig.new.active
end
copy(dir_or_file, scope) click to toggle source

takeltau copy: {takelage::BitClipboard#copy}

# File lib/takeltau.rb, line 177
def copy(dir_or_file, scope)
  Takeltau::BitClipboard.new.copy dir_or_file, scope
end
list() click to toggle source

takeltau version: {takelage::Self#list}

# File lib/takeltau.rb, line 195
def list
  Takeltau::Self.new.list
end
login() click to toggle source

takeltau login: {takelage::DockerContainer#login}

# File lib/takeltau.rb, line 189
def login
  Takeltau::DockerContainer.new.login
end
paste(cid, dir) click to toggle source

takeltau paste: {takelage::BitClipboard#paste}

# File lib/takeltau.rb, line 207
def paste(cid, dir)
  Takeltau::BitClipboard.new.paste cid, dir
end
project() click to toggle source

takeltau project: {takelage::InfoProject#active}

# File lib/takeltau.rb, line 183
def project
  Takeltau::InfoProject.new.active
end
prune() click to toggle source

takeltau prune: {takelage::DockerContainer#prune}

# File lib/takeltau.rb, line 219
def prune
  Takeltau::DockerContainer.new.prune
end
pull() click to toggle source

takeltau pull: {takelage::BitClipboard#pull}

# File lib/takeltau.rb, line 213
def pull
  Takeltau::BitClipboard.new.pull
end
push() click to toggle source

takeltau push: {takelage::BitClipboard#push}

# File lib/takeltau.rb, line 225
def push
  Takeltau::BitClipboard.new.push
end
status() click to toggle source

takeltau status: {takelage::InfoStatus#bar}

# File lib/takeltau.rb, line 231
def status
  Takeltau::InfoStatus.new.bar
end
update() click to toggle source

takeltau update: {takelage::DockerImage#update}

# File lib/takeltau.rb, line 237
def update
  Takeltau::DockerImage.new.update
end
version() click to toggle source

takeltau version: {takelage::Self#version}

# File lib/takeltau.rb, line 243
def version
  Takeltau::Self.new.version
end