morpheus-cli 8.0.13 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,6 +117,8 @@ module Morpheus::Cli::BackupsHelper
117
117
  {
118
118
  "ID" => 'id',
119
119
  "Backup" => lambda {|it| it['backup']['name'] rescue '' },
120
+ "Type" => lambda {|it| format_backup_result_type_tag(it) },
121
+ "Location" => lambda {|it| format_backup_result_location_tag(it) },
120
122
  "Status" => lambda {|it| format_backup_result_status(it) },
121
123
  #"Duration" => lambda {|it| format_duration(it['startDate'], it['endDate']) },
122
124
  "Duration" => lambda {|it| format_duration_milliseconds(it['durationMillis']) if it['durationMillis'].to_i > 0 },
@@ -168,5 +170,31 @@ module Morpheus::Cli::BackupsHelper
168
170
  def format_backup_restore_status(backup_restore, return_color=cyan)
169
171
  format_backup_result_status(backup_restore, return_color)
170
172
  end
173
+
174
+ # format backup result type tag based on associated backup data
175
+ def format_backup_result_type_tag(backup_result)
176
+ backup = backup_result['backup'] || {}
177
+ if backup['cronExpression'] || (backup['schedule'] && backup['schedule']['id']) || (backup['job'] && backup['job']['id'])
178
+ "#{cyan}POLICY#{reset}"
179
+ else
180
+ "#{yellow}MANUAL#{reset}"
181
+ end
182
+ end
183
+
184
+ # format backup result location tag based on storage provider
185
+ def format_backup_result_location_tag(backup_result)
186
+ backup = backup_result['backup'] || {}
187
+ if backup_result['storageProvider'] && backup_result['storageProvider']['id']
188
+ "#{green}REMOTE#{reset}"
189
+ elsif backup['storageProvider'] && backup['storageProvider']['id']
190
+ "#{green}REMOTE#{reset}"
191
+ elsif backup_result['backupProvider'] && backup_result['backupProvider']['id']
192
+ "#{green}REMOTE#{reset}"
193
+ elsif backup['backupProvider'] && backup['backupProvider']['id']
194
+ "#{green}REMOTE#{reset}"
195
+ else
196
+ "#{blue}LOCAL#{reset}"
197
+ end
198
+ end
171
199
 
172
- end
200
+ end
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "8.0.13"
4
+ VERSION = "8.1.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.13
4
+ version: 8.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2026-01-27 00:00:00.000000000 Z
14
+ date: 2026-04-06 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: tins
@@ -381,6 +381,8 @@ files:
381
381
  - lib/morpheus/api/storage_volumes_interface.rb
382
382
  - lib/morpheus/api/subnet_types_interface.rb
383
383
  - lib/morpheus/api/subnets_interface.rb
384
+ - lib/morpheus/api/system_types_interface.rb
385
+ - lib/morpheus/api/systems_interface.rb
384
386
  - lib/morpheus/api/task_sets_interface.rb
385
387
  - lib/morpheus/api/tasks_interface.rb
386
388
  - lib/morpheus/api/usage_interface.rb
@@ -570,6 +572,7 @@ files:
570
572
  - lib/morpheus/cli/commands/storage_volume_types.rb
571
573
  - lib/morpheus/cli/commands/storage_volumes.rb
572
574
  - lib/morpheus/cli/commands/subnets_command.rb
575
+ - lib/morpheus/cli/commands/systems.rb
573
576
  - lib/morpheus/cli/commands/tasks.rb
574
577
  - lib/morpheus/cli/commands/tee_command.rb
575
578
  - lib/morpheus/cli/commands/tenants_command.rb