-
-
Save Tapan/2cfebdd3d993e7e75b16 to your computer and use it in GitHub Desktop.
Argument
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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
I want to pass two arguments from line 2 and invoke initialize() method. Is this possible?