class Fog::Compute::Server
we're assuming the servers were created via boucher or management
Public Instance Methods
chmod(remote_path, chmod)
click to toggle source
# File lib/ext/fog.rb, line 75 def chmod(remote_path, chmod) ssh("sudo chmod #{chmod} #{remote_path}") end
chown_r(remote_path, chown)
click to toggle source
# 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)
click to toggle source
# File lib/ext/fog.rb, line 63 def copy_file(tar_path, remote_tar_path) scp(tar_path, remote_tar_path) end
env()
click to toggle source
# File lib/ext/fog.rb, line 59 def env; tags["Env"]; end
extract_tar(remote_tar_path)
click to toggle source
# File lib/ext/fog.rb, line 67 def extract_tar(remote_tar_path) ssh("sudo tar -xzf #{remote_tar_path} -C /") end
name()
click to toggle source
# File lib/ext/fog.rb, line 61 def name; tags["Name"]; end
type()
click to toggle source
# File lib/ext/fog.rb, line 60 def type; tags["Meal"]; end