Sha256: 5f26a443e3f5e276d70a6995f423f9b9c405d61fb41f9e4e3c19cda001d70b30

Contents?: true

Size: 656 Bytes

Versions: 14

Compression:

Stored size: 656 Bytes

Contents

module EZAPIClient
  class GenPasswordToken

    include Virtus.model
    attribute :eks_path, String
    attribute :prv_path, String
    attribute :username, String
    attribute :password, String
    attribute :reference_no, String
    attribute :command, String, lazy: true, default: :default_command

    def self.call(args)
      self.new(args).call
    end

    def call
      ExecCommand.(command)
    end

    private

    def default_command
      [
        "java -cp",
        JAR_PATH,
        "ezpadala.EZtoken",
        prv_path,
        eks_path,
        username,
        password,
        reference_no,
      ].join(" ")
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ezapi_client-1.2.1 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-1.1.2 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-1.1.1 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-1.1.0 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-1.0.3 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-1.0.2 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-1.0.1 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-1.0.0 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-0.5.0 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-0.4.0 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-0.3.0 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-0.2.1 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-0.2.0 lib/ezapi_client/services/gen_password_token.rb
ezapi_client-0.1.0 lib/ezapi_client/services/gen_password_token.rb