Skip to content

Instantly share code, notes, and snippets.

@Tapan
Last active August 29, 2015 14:05
Show Gist options
  • Save Tapan/2cfebdd3d993e7e75b16 to your computer and use it in GitHub Desktop.
Save Tapan/2cfebdd3d993e7e75b16 to your computer and use it in GitHub Desktop.
Argument
Net::SSH.start(name, 'user') do |session|
session.exec!('file.rb')
end
file.rb
-----------------
module M1
module M2
class Sport
def initialize(arg1, arg2)
# do something
end
end
end
end
@mpalmer
Copy link

mpalmer commented Aug 28, 2014

Yes. Replace arg1, arg2 on line 11 with ARGV[0] and ARGV[1].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment