Class: Abt::Providers::Devops::Commands::Current
Instance Attribute Summary
Attributes inherited from BaseCommand
#config, #path
Attributes inherited from BaseCommand
#ari, #cli, #flags
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseCommand
#initialize
Methods inherited from BaseCommand
flags, #initialize
Class Method Details
.description ⇒ Object
12
13
14
|
# File 'lib/abt/providers/devops/commands/current.rb', line 12
def self.description
"Get or set DevOps configuration for current git repository"
end
|
.usage ⇒ Object
8
9
10
|
# File 'lib/abt/providers/devops/commands/current.rb', line 8
def self.usage
"abt current devops[:<organization-name>/<project-name>/<board-id>[/<work-item-id>]]"
end
|
Instance Method Details
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/abt/providers/devops/commands/current.rb', line 16
def perform
require_local_config!
require_board!
ensure_valid_configuration!
if path != config.path && config.local_available?
config.path = path
warn("Configuration updated")
end
print_configuration
end
|