Class: Takelage::BitScope
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takelage::BitScope
- 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
-
#add(scope) ⇒ Object
Add bit remote scope.
-
#list ⇒ Object
List bit remote scopes.
-
#new(scope) ⇒ Object
Create new bit remote scope.
-
#ssh ⇒ Object
Log in to bit remote server.
Methods included from BitScopeNew
Methods included from BitScopeList
Methods included from BitScopeSSH
Methods included from BitScopeAdd
Methods included from BitCheckWorkspace
Methods included from GitCheckWorkspace
Methods included from GitCheckBit
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
Methods inherited from SubCommandBase
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 |
#list ⇒ Object
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 |
#ssh ⇒ Object
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 |