Class: Takelage::BitScope

Inherits:
SubCommandBase show all
Includes:
BitCheckWorkspace, BitScopeAdd, BitScopeList, BitScopeNew, BitScopeSSH, ConfigModule, GitCheckBit, GitCheckWorkspace, LoggingModule, SystemModule
Defined in:
lib/takelage/bit/scope/cli.rb

Overview

takelage bit scope

Instance Method Summary collapse

Methods included from BitScopeNew

#bit_scope_new

Methods included from BitScopeList

#bit_scope_list

Methods included from BitScopeSSH

#bit_scope_ssh

Methods included from BitScopeAdd

#bit_scope_add

Methods included from BitCheckWorkspace

#bit_check_workspace

Methods included from GitCheckWorkspace

#git_check_workspace

Methods included from GitCheckBit

#git_check_bit

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

#command_available_else_error?, #command_available_else_warn?, #hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_capture, #run_and_exit, #run_and_fork, #try

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#add(scope) ⇒ Object

Add bit remote scope.



27
28
29
# File 'lib/takelage/bit/scope/cli.rb', line 27

def add(scope)
  exit bit_scope_add scope
end

#listObject

List bit remote scopes.



55
56
57
58
59
60
# File 'lib/takelage/bit/scope/cli.rb', line 55

def list
  scopes = bit_scope_list
  exit false if scopes == false
  say scopes unless scopes.to_s.chomp.empty?
  true
end

#new(scope) ⇒ Object

Create new bit remote scope.



42
43
44
# File 'lib/takelage/bit/scope/cli.rb', line 42

def new(scope)
  exit bit_scope_new scope
end

#sshObject

Log in to bit remote server.



70
71
72
# File 'lib/takelage/bit/scope/cli.rb', line 70

def ssh
  exit bit_scope_ssh
end