Better explaining variables
This commit is contained in:
@@ -69,14 +69,14 @@ class Mrsk::Commands::Accessory < Mrsk::Commands::Base
|
|||||||
exec_over_ssh "bash", host: host
|
exec_over_ssh "bash", host: host
|
||||||
end
|
end
|
||||||
|
|
||||||
def ensure_local_file_present(local)
|
def ensure_local_file_present(local_file)
|
||||||
if !local.is_a?(StringIO) && !Pathname.new(local).exist?
|
if !local_file.is_a?(StringIO) && !Pathname.new(local_file).exist?
|
||||||
raise "Missing file: #{local}"
|
raise "Missing file: #{local_file}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def make_directory_for(remote)
|
def make_directory_for(remote_file)
|
||||||
[ :mkdir, "-p", Pathname.new(remote).dirname.to_s ]
|
[ :mkdir, "-p", Pathname.new(remote_file).dirname.to_s ]
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_files
|
def remove_files
|
||||||
|
|||||||
Reference in New Issue
Block a user