class Soundcheck
Attributes
options[RW]
paths[RW]
project[RW]
Public Class Methods
new(paths, options = {})
click to toggle source
# File lib/soundcheck.rb, line 9 def initialize(paths, options = {}) self.project = Project.new(Dir.pwd) self.paths = paths self.options = options logger.level = Logger::DEBUG if options[:verbose] logger.debug "Debug logging enabled." end
Public Instance Methods
command_to_run()
click to toggle source
# File lib/soundcheck.rb, line 18 def command_to_run project.frameworks.each do |framework| framework.options = options command = framework.command(*paths) return command if command end end
commands_to_run()
click to toggle source
# File lib/soundcheck.rb, line 26 def commands_to_run commands = project.frameworks.map do |framework| framework.options = options framework.command(*paths) end.compact logger.debug "Commands to run: #{commands.inspect}" commands end