class Takelage::CLI
takelage
Attributes
@return [String] bash completion code
Public Class Methods
Behave as expected by correctly reporting failure in exit status. See github.com/erikhuda/thor/wiki/Making-An-Executable
# File lib/takelage.rb, line 253 def self.exit_on_failure? true end
Initialize takelage cli.
# File lib/takelage.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
takelage clean: {takelage::DockerContainer#clean}
# File lib/takelage.rb, line 201 def clean Takelage::DockerContainer.new.clean end
takelage config: {takelage::SelfConfig#active}
# File lib/takelage.rb, line 171 def config Takelage::SelfConfig.new.active end
takelage copy: {takelage::BitClipboard#copy}
# File lib/takelage.rb, line 177 def copy(dir_or_file, scope) Takelage::BitClipboard.new.copy dir_or_file, scope end
takelage version: {takelage::Self#list}
# File lib/takelage.rb, line 195 def list Takelage::Self.new.list end
takelage login: {takelage::DockerContainer#login}
# File lib/takelage.rb, line 189 def login Takelage::DockerContainer.new.login end
takelage paste: {takelage::BitClipboard#paste}
# File lib/takelage.rb, line 207 def paste(cid, dir) Takelage::BitClipboard.new.paste cid, dir end
takelage project: {takelage::InfoProject#active}
# File lib/takelage.rb, line 183 def project Takelage::InfoProject.new.active end
takelage prune: {takelage::DockerContainer#prune}
# File lib/takelage.rb, line 219 def prune Takelage::DockerContainer.new.prune end
takelage pull: {takelage::BitClipboard#pull}
# File lib/takelage.rb, line 213 def pull Takelage::BitClipboard.new.pull end
takelage push: {takelage::BitClipboard#push}
# File lib/takelage.rb, line 225 def push Takelage::BitClipboard.new.push end
takelage status: {takelage::InfoStatus#bar}
# File lib/takelage.rb, line 231 def status Takelage::InfoStatus.new.bar end
takelage update: {takelage::DockerImage#update}
# File lib/takelage.rb, line 237 def update Takelage::DockerImage.new.update end
takelage version: {takelage::Self#version}
# File lib/takelage.rb, line 243 def version Takelage::Self.new.version end