Class: Fog::Compute::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/fog.rb

Overview

we’re assuming the servers were created via boucher or management

Instance Method Summary collapse

Instance Method Details

#chmod(remote_path, chmod) ⇒ Object



75
76
77
# File 'lib/ext/fog.rb', line 75

def chmod(remote_path, chmod)
  ssh("sudo chmod #{chmod} #{remote_path}")
end

#chown_r(remote_path, chown) ⇒ Object



71
72
73
# File 'lib/ext/fog.rb', line 71

def chown_r(remote_path, chown)
  ssh("sudo chown -R #{chown} #{remote_path}")
end

#copy_file(tar_path, remote_tar_path) ⇒ Object



63
64
65
# File 'lib/ext/fog.rb', line 63

def copy_file(tar_path, remote_tar_path)
  scp(tar_path, remote_tar_path)
end

#envObject



59
# File 'lib/ext/fog.rb', line 59

def env;  tags["Env"]; end

#extract_tar(remote_tar_path) ⇒ Object



67
68
69
# File 'lib/ext/fog.rb', line 67

def extract_tar(remote_tar_path)
  ssh("sudo tar -xzf #{remote_tar_path} -C /")
end

#nameObject



61
# File 'lib/ext/fog.rb', line 61

def name; tags["Name"]; end

#typeObject



60
# File 'lib/ext/fog.rb', line 60

def type; tags["Meal"]; end