Sha256: 91f3434eaecdd0a64d6005b9f4d5e0d5d5e8db9ecf31a5be0cab1bba38fe704a

Contents?: true

Size: 605 Bytes

Versions: 25

Compression:

Stored size: 605 Bytes

Contents

module Capricorn
  class Satellite
    module Actions
      
      def add_engine(name, options={})
        unless @engines.key? name
          @engines[name] = options
          true
        else
          false
        end
      end
      
      def update_engine(name, options={})
        if @engines.key? name
          @engines[name] = options
          true
        else
          false
        end
      end
      
      def remove_engine(name)
        if @engines.key? name
          @engines.delete(name)
          true
        else
          false
        end
      end
      
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
simonmenke-capricorn-0.2.00 lib/capricorn/satellite/actions.rb
simonmenke-capricorn-0.2.03 lib/capricorn/satellite/actions.rb
simonmenke-capricorn-0.2.07 lib/capricorn/satellite/actions.rb
capricorn-0.2.21 lib/capricorn/satellite/actions.rb
capricorn-0.2.20 lib/capricorn/satellite/actions.rb
capricorn-0.2.19 lib/capricorn/satellite/actions.rb
capricorn-0.2.18 lib/capricorn/satellite/actions.rb
capricorn-0.2.17 lib/capricorn/satellite/actions.rb
capricorn-0.2.16 lib/capricorn/satellite/actions.rb
capricorn-0.2.15 lib/capricorn/satellite/actions.rb
capricorn-0.2.14 lib/capricorn/satellite/actions.rb
capricorn-0.2.13 lib/capricorn/satellite/actions.rb
capricorn-0.2.12 lib/capricorn/satellite/actions.rb
capricorn-0.2.11 lib/capricorn/satellite/actions.rb
capricorn-0.2.10 lib/capricorn/satellite/actions.rb
capricorn-0.2.09 lib/capricorn/satellite/actions.rb
capricorn-0.2.08 lib/capricorn/satellite/actions.rb
capricorn-0.2.07 lib/capricorn/satellite/actions.rb
capricorn-0.2.06 lib/capricorn/satellite/actions.rb
capricorn-0.2.05 lib/capricorn/satellite/actions.rb