Sha256: e7d9c59e5b446f5fa6ed56547bc2fd1c5eb7dffc06e167cfc7fc0e70d95ed70b

Contents?: true

Size: 451 Bytes

Versions: 9

Compression:

Stored size: 451 Bytes

Contents

module Arli
  module Actions
    class << self
      attr_accessor :actions

      def action(name)
        self.actions[name]
      end

      def action_name(klass)
        self.actions.invert[klass]
      end
    end
  end
end

Arli::Actions.actions = {}

require_relative 'actions/action'
require_relative 'actions/unzip_file'
require_relative 'actions/git_repo'
require_relative 'actions/dir_name'
require_relative 'actions/move_to_library_path'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
arli-1.4.0 lib/arli/actions.rb
arli-1.3.0 lib/arli/actions.rb
arli-1.2.1 lib/arli/actions.rb
arli-1.1.0 lib/arli/actions.rb
arli-1.0.2 lib/arli/actions.rb
arli-1.0.1 lib/arli/actions.rb
arli-1.0.0 lib/arli/actions.rb
arli-0.9.0 lib/arli/actions.rb
arli-0.8.3 lib/arli/actions.rb