Sha256: 2f37106b2dda953ea03bd10937542fe32d8289a358ef1ff424a7d9b6d7b5df2d
Contents?: true
Size: 805 Bytes
Versions: 4
Compression:
Stored size: 805 Bytes
Contents
require 'soundcheck/logging' require 'soundcheck/project' class Soundcheck attr_accessor :project attr_accessor :paths attr_accessor :options 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 def command_to_run project.frameworks.each do |framework| framework.options = options command = framework.command(*paths) return command if command end end 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 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
soundcheck-0.4.0 | lib/soundcheck.rb |
soundcheck-0.3.0 | lib/soundcheck.rb |
soundcheck-0.2.4.beta1 | lib/soundcheck.rb |
soundcheck-0.2.3 | lib/soundcheck.rb |