Sha256: cacb57261037a41f6797b847ea4aaeaf19e2fb24790498c5a7cb307442f3c99a

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

module KatelloForemanEngine
  module Actions
    class UserCreate < Dynflow::Action

      def self.subscribe
        Headpin::Actions::UserCreate
      end

      def plan(user)
        if !user.hidden? && !Bindings.user_find(input['username'])
          plan_self input
        end
      end

      def run
        Bindings.user_create(input['username'], input['email'], input['admin'])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
katello-foreman-engine-0.0.3 lib/katello_foreman_engine/actions/user_create.rb