module DotUsage
Constants
- VERSION
Public Class Methods
list_targets(options)
click to toggle source
List targets
# File lib/dot_usage.rb, line 118 def self.list_targets(options) file = DotUsageFile.new options.file puts "Available targets:" file.targets.each do |target| puts " - #{target}" if options.verbose Target.new(target).recipe(options).each do |cmd| puts " `#{cmd}`" end end end 0 end
run_target(target, options)
click to toggle source
Run a given target
# File lib/dot_usage.rb, line 138 def self.run_target(target, options) target = Target.new target target.run options end