Class: Hotdog::Commands::Scp

Inherits:
SingularSshAlike show all
Defined in:
lib/hotdog/commands/scp.rb

Instance Attribute Summary

Attributes inherited from Search

#remote_command

Attributes inherited from BaseCommand

#application, #logger, #options, #persistent_db_path

Instance Method Summary collapse

Methods inherited from SshAlike

#run

Methods inherited from Search

#evaluate, #get_hosts_with_search_tags, #parse, #parse_options, #run

Methods inherited from BaseCommand

#execute, #fixed_string?, #initialize, #parse_options, #reload, #run

Constructor Details

This class inherits a constructor from Hotdog::Commands::BaseCommand

Instance Method Details

#define_options(optparse, options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/hotdog/commands/scp.rb', line 10

def define_options(optparse, options={})
  program_name = File.basename($0, '.*')
  optparse.banner = "Usage: #{program_name} scp [options] pattern -- src @:dst"
  super
end