class Mini::Guard::XFileCommands

Attributes

xassociations[R]

Public Class Methods

new(xfiles) click to toggle source
# File lib/mini/guard.rb, line 98
def initialize(xfiles)
  @xassociations = xfiles.inject([]) {|res, e| res += e.associations}
end

Public Instance Methods

execute() click to toggle source
# File lib/mini/guard.rb, line 102
def execute
  if execute?
    puts "executing: #{command}"
    puts Shellany::Sheller.stdout(command)
  end
end

Private Instance Methods

command() click to toggle source
# File lib/mini/guard.rb, line 112
def command; "#{XConfiguration.rspec} #{xassociations.join(' ')}"; end
execute?() click to toggle source
# File lib/mini/guard.rb, line 111
def execute?; xassociations.any?; end