Class: Example::Main
- Inherits:
-
Object
- Object
- Example::Main
- Includes:
- Ftpd::InsecureCertificate
- Defined in:
- examples/example.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Main
constructor
A new instance of Main.
- #run ⇒ Object
Methods included from Ftpd::InsecureCertificate
Constructor Details
#initialize(argv) ⇒ Main
Returns a new instance of Main.
161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'examples/example.rb', line 161 def initialize(argv) @args = Arguments.new(argv) @data_dir = Ftpd::TempDir.make create_files @driver = Driver.new(user, password, account, @data_dir, @args.read_only) @server = Ftpd::FtpServer.new(@driver) configure_server @server.start display_connection_info create_connection_script end |
Instance Method Details
#run ⇒ Object
174 175 176 |
# File 'examples/example.rb', line 174 def run wait_until_stopped end |