Sha256: 39a99933511aee1e96ef909c3e3793023bd7d05ef227771c87ea24698383a718

Contents?: true

Size: 655 Bytes

Versions: 7

Compression:

Stored size: 655 Bytes

Contents

# frozen_string_literal: true

# tau ship project list
module ShipProjectList
  # List takelship projects
  def ship_project_list
    log.debug 'List takelship projects'
    takelship = _ship_info_lib_get_takelshipinfo
    unless takelship.instance_of?(Hash)
      say 'Could not get takelship info'
      say 'Try: ship update'
      say 'Try: ship list --debug'
      return false
    end

    unless takelship.key?('projects')
      say 'Could not get takelship projects'
      say 'Try: ship update'
      say 'Try: ship list --debug'
      return false
    end

    takelship['projects'].each do |project|
      say project['name']
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
takeltau-0.46.9 lib/takeltau/ship/project/list.rb
takeltau-0.46.8 lib/takeltau/ship/project/list.rb
takeltau-0.46.5 lib/takeltau/ship/project/list.rb
takeltau-0.46.1 lib/takeltau/ship/project/list.rb
takeltau-0.46.0 lib/takeltau/ship/project/list.rb
takeltau-0.45.27 lib/takeltau/ship/project/list.rb
takeltau-0.45.26 lib/takeltau/ship/project/list.rb