Class: Fog::Compute::Server
- Inherits:
-
Object
- Object
- Fog::Compute::Server
- Defined in:
- lib/ext/fog.rb
Overview
we’re assuming the servers were created via boucher or management
Instance Method Summary collapse
- #chmod(remote_path, chmod) ⇒ Object
- #chown_r(remote_path, chown) ⇒ Object
- #copy_file(tar_path, remote_tar_path) ⇒ Object
- #env ⇒ Object
- #extract_tar(remote_tar_path) ⇒ Object
- #name ⇒ Object
- #type ⇒ Object
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 |
#env ⇒ Object
59 |
# File 'lib/ext/fog.rb', line 59 def env; ["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 |
#name ⇒ Object
61 |
# File 'lib/ext/fog.rb', line 61 def name; ["Name"]; end |
#type ⇒ Object
60 |
# File 'lib/ext/fog.rb', line 60 def type; ["Meal"]; end |