Sha256: a707a65c91deba86991dc998314ddd10510d97d14f9f1c93e1734450275584f5

Contents?: true

Size: 840 Bytes

Versions: 7

Compression:

Stored size: 840 Bytes

Contents

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

module GlooLang
  module Verbs
    class Reload < GlooLang::Core::Verb

      KEYWORD = 'reload'.freeze
      KEYWORD_SHORT = 'r!'.freeze

      #
      # Run the verb.
      #
      def run
        @engine.persist_man.reload_all
      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

7 entries across 7 versions & 1 rubygems

Version Path
gloo-lang-1.4.3 lib/gloo_lang/verbs/reload.rb
gloo-lang-1.4.2 lib/gloo_lang/verbs/reload.rb
gloo-lang-1.4.1 lib/gloo_lang/verbs/reload.rb
gloo-lang-1.4.0 lib/gloo_lang/verbs/reload.rb
gloo-lang-1.3.2 lib/gloo_lang/verbs/reload.rb
gloo-lang-1.3.1 lib/gloo_lang/verbs/reload.rb
gloo-lang-1.3.0 lib/gloo_lang/verbs/reload.rb