Class: Dply::Cli::InstallPkgs
- Inherits:
-
Object
- Object
- Dply::Cli::InstallPkgs
- Includes:
- Helper
- Defined in:
- lib/dply/cli/install_pkgs.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ InstallPkgs
constructor
A new instance of InstallPkgs.
- #opts ⇒ Object
- #run ⇒ Object
Methods included from Helper
#cmd, #error, #git, #logger, #sh, #symlink
Constructor Details
#initialize(argv) ⇒ InstallPkgs
Returns a new instance of InstallPkgs.
11 12 13 14 |
# File 'lib/dply/cli/install_pkgs.rb', line 11 def initialize(argv) @argv = argv @options = {} end |
Instance Method Details
#opts ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/dply/cli/install_pkgs.rb', line 25 def opts OptionParser.new do |opts| opts. = "Usage: drake install-pkgs [options] [target]" opts.on("-b" , "Build mode") do |b| @options[:build_mode] = true end opts.on("-h", "--help", "Help") do puts opts exit end end end |