Class: Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/deltacloud/drivers/condor/condor_driver.rb,
lib/deltacloud/drivers/ec2/ec2_driver.rb,
lib/deltacloud/drivers/gogrid/gogrid_driver.rb

Overview

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authn_errorObject

Returns the value of attribute authn_error.



25
26
27
# File 'lib/deltacloud/drivers/ec2/ec2_driver.rb', line 25

def authn_error
  @authn_error
end

#keynameObject

Returns the value of attribute keyname.



24
25
26
# File 'lib/deltacloud/drivers/ec2/ec2_driver.rb', line 24

def keyname
  @keyname
end

#passwordObject

Returns the value of attribute password.



21
22
23
# File 'lib/deltacloud/drivers/gogrid/gogrid_driver.rb', line 21

def password
  @password
end

#usernameObject

Returns the value of attribute username.



20
21
22
# File 'lib/deltacloud/drivers/gogrid/gogrid_driver.rb', line 20

def username
  @username
end

Class Method Details

.convert_condor_state(state_id) ⇒ Object



18
19
20
21
22
23
24
25
# File 'lib/deltacloud/drivers/condor/condor_driver.rb', line 18

def self.convert_condor_state(state_id)
  case state_id
    when 0,1,5 then 'PENDING'
    when 2     then 'RUNNING'
    when 3,4   then 'SHUTTING_DOWN'
    else raise "Unknown Condor state (#{state_id})"
  end
end

Instance Method Details

#authn_feature_failed?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/deltacloud/drivers/ec2/ec2_driver.rb', line 27

def authn_feature_failed?
  return true unless authn_error.nil?
end