Sha256: d6e9a99c1940c15fdbeafa88d7c37af2548bfde868f6c6c4699aede18b36057e

Contents?: true

Size: 895 Bytes

Versions: 16

Compression:

Stored size: 895 Bytes

Contents

module Redcar
  class Runnables

    class HelpItem
      include Redcar::Tree::Mirror::NodeMirror

      def text
        "No runnables (HELP)"
      end
    end

    class Runnable
      include Redcar::Tree::Mirror::NodeMirror

      def initialize(name,path,info)
        @name = name
        @info = info
        @path = path
      end

      def text
        @name
      end

      def path
        @path
      end

      def tooltip_text
        @info["description"] || ""
      end

      def leaf?
        @info["command"]
      end

      def icon
        File.join(Redcar::ICONS_DIRECTORY, "cog.png")
      end

      def children
        []
      end

      def command
        @info["command"]
      end

      def out?
        @info["output"]
      end

      def output
        if out?
          @info["output"]
        else
          "tab"
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
redcar-dev-0.12.8dev-java plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.7dev-java plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.6dev-java plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.4dev-java plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.3dev-java plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.1dev-java plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-dev-0.12.0dev-java plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.11 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.11.0dev plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.10 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.9.2 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.9.1 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.9.0 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.8.1 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.8 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb
redcar-0.7 plugins/runnables/lib/runnables/tree_mirror/nodes/runnable.rb