class UnitHosting::Api::VmRecipe

Attributes

display_name[RW]
op_mail[RW]
op_user[RW]
plan_id[RW]
rootpw[RW]
ssh_key[RW]
user_script[RW]

Public Class Methods

new() click to toggle source
# File lib/unit-hosting/api/vm_recipe.rb, line 8
def initialize
  @op_user = ENV['USER']
end

Public Instance Methods

load_ssh_key(file) click to toggle source
# File lib/unit-hosting/api/vm_recipe.rb, line 11
def load_ssh_key file
  File::open(file) do |f|
    @ssh_key =  f.read
  end
end
params() click to toggle source
# File lib/unit-hosting/api/vm_recipe.rb, line 16
def params
  param = {
    "rootpw" => @rootpw,
    "ssh_key" => @ssh_key,
    "op_user" => @op_user,
    "op_mail" => @op_mail,
    "user_script" => @user_script,
    "plan_id" => @plan_id,
    "display_name" => @display_name
  }
end