Sha256: efca6e736047a585c592c77f65385281ad82fc4dc86e175b0d63d657cf8096b8
Contents?: true
Size: 800 Bytes
Versions: 4
Compression:
Stored size: 800 Bytes
Contents
require 'dply/pkgs' require 'dply/helper' module Dply module Cli class InstallPkgs include Helper def initialize(argv) @argv = argv @options = {} end def run opts.parse!(@argv) error "pkgs.yml cannot be a symlink" if File.symlink? "pkgs.yml" pkgs = Pkgs.new("pkgs.yml") pkgs.install(build_mode: @options[:build_mode]) puts "installed" end def opts OptionParser.new do |opts| opts.banner = "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 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dply-0.3.3 | lib/dply/cli/install_pkgs.rb |
dply-0.3.2 | lib/dply/cli/install_pkgs.rb |
dply-0.3.1 | lib/dply/cli/install_pkgs.rb |
dply-0.3.0 | lib/dply/cli/install_pkgs.rb |