Sha256: cc0ed203a715148e50ca1e94443c2be3c2a2563cead6412d556db1c916c11d01

Contents?: true

Size: 1.07 KB

Versions: 20

Compression:

Stored size: 1.07 KB

Contents

# Author::    Eric Crane  (mailto:eric.crane@mac.com)
# Copyright:: Copyright (c) 2022 Eric Crane.  All rights reserved.
#
# Show all the currently loaded files.
#

module Gloo
  module Verbs
    class Files < Gloo::Core::Verb

      KEYWORD = 'files'.freeze
      KEYWORD_SHORT = 'fs'.freeze

      #
      # Run the verb.
      #
      def run
        return unless @engine.persist_man.maps
        
        @engine.persist_man.maps.each do |map|
          # puts "#{map.obj.name} - #{map.pn}"
          @engine.log.show "#{map.obj.name} - #{map.pn}"
        end
        @engine.heap.it.set_to @engine.persist_man.maps.count
      end

      #
      # Get the Verb's keyword.
      #
      def self.keyword
        return KEYWORD
      end

      #
      # Get the Verb's keyword shortcut.
      #
      def self.keyword_shortcut
        return KEYWORD_SHORT
      end

      # ---------------------------------------------------------------------
      #    Private functions
      # ---------------------------------------------------------------------

      private

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gloo-3.5.0 lib/gloo/verbs/files.rb
gloo-3.4.1 lib/gloo/verbs/files.rb
gloo-3.4.0 lib/gloo/verbs/files.rb
gloo-3.3.0 lib/gloo/verbs/files.rb
gloo-3.2.0 lib/gloo/verbs/files.rb
gloo-3.1.1 lib/gloo/verbs/files.rb
gloo-3.1.0 lib/gloo/verbs/files.rb
gloo-3.0.1 lib/gloo/verbs/files.rb
gloo-3.0.0 lib/gloo/verbs/files.rb
gloo-2.5.0 lib/gloo/verbs/files.rb
gloo-2.4.3 lib/gloo/verbs/files.rb
gloo-2.4.2 lib/gloo/verbs/files.rb
gloo-2.4.1 lib/gloo/verbs/files.rb
gloo-2.4.0 lib/gloo/verbs/files.rb
gloo-2.3.1 lib/gloo/verbs/files.rb
gloo-2.2.0 lib/gloo/verbs/files.rb
gloo-2.1.0 lib/gloo/verbs/files.rb
gloo-2.0.2 lib/gloo/verbs/files.rb
gloo-2.0.1 lib/gloo/verbs/files.rb
gloo-2.0.0 lib/gloo/verbs/files.rb