module EySecrets::CommandBuilder
Public Instance Methods
commands()
click to toggle source
# File lib/ey_secrets/command_builder.rb, line 11 def commands @commands = [] build @commands end
scp(source, destination)
click to toggle source
# File lib/ey_secrets/command_builder.rb, line 3 def scp(source, destination) @commands << "scp #{source} #{instance.user_name}@#{instance.host_name}:#{destination}" end
ssh(command)
click to toggle source
# File lib/ey_secrets/command_builder.rb, line 7 def ssh(command) @commands << "ssh #{instance.user_name}@#{instance.host_name} \"#{command}\"" end
Private Instance Methods
build()
click to toggle source
# File lib/ey_secrets/command_builder.rb, line 19 def build raise(NotImplementedError) end