Class: Crowbar::Client::App::Repository
- Inherits:
-
Base
- Object
- Thor
- Base
- Crowbar::Client::App::Repository
show all
- Defined in:
- lib/crowbar/client/app/repository.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#activate(platform, repo) ⇒ Object
85
86
87
88
89
90
91
92
93
94
|
# File 'lib/crowbar/client/app/repository.rb', line 85
def activate(platform, repo)
Command::Repository::Activate.new(
*command_params(
platform: platform,
repo: repo
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#activate_all ⇒ Object
104
105
106
107
108
109
110
|
# File 'lib/crowbar/client/app/repository.rb', line 104
def activate_all
Command::Repository::ActivateAll.new(
*command_params
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#deactivate(platform, repo) ⇒ Object
120
121
122
123
124
125
126
127
128
129
|
# File 'lib/crowbar/client/app/repository.rb', line 120
def deactivate(platform, repo)
Command::Repository::Deactivate.new(
*command_params(
platform: platform,
repo: repo
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#deactivate_all ⇒ Object
139
140
141
142
143
144
145
|
# File 'lib/crowbar/client/app/repository.rb', line 139
def deactivate_all
Command::Repository::DeactivateAll.new(
*command_params
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#list ⇒ Object
69
70
71
72
73
74
75
|
# File 'lib/crowbar/client/app/repository.rb', line 69
def list
Command::Repository::List.new(
*command_params
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|