Sha256: 12dc7a220f0a1fd26f65a6d96a2e89edbb8596684af181b7ca9a1641e699fdbc

Contents?: true

Size: 908 Bytes

Versions: 2

Compression:

Stored size: 908 Bytes

Contents

module Typus

  module Actions

    protected

    def add_resource_action(*args)
      @resource_actions ||= []
      @resource_actions << args
    end

    def prepend_resource_action(*args)
      @resource_actions ||= []
      @resource_actions = @resource_actions.unshift(args)
    end

    def append_resource_action(*args)
      @resource_actions ||= []
      @resource_actions = @resource_actions.concat([args])
    end

    # FIXME: I know this is ugly but first of all I want to see it working.

    def add_resources_action(*args)
      @resources_actions ||= []
      @resources_actions << args
    end

    def prepend_resources_action(*args)
      @resources_actions ||= []
      @resources_actions = @resources_actions.unshift(args)
    end

    def append_resources_action(*args)
      @resources_actions ||= []
      @resources_actions = @resources_actions.concat([args])
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typus-3.0.6 lib/typus/actions.rb
typus-3.0.5 lib/typus/actions.rb