Sha256: f6295beabbe5c9706d3b42832ceed35e2b18c6c3f38ed91226c70b55262a339a
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
module Sprinkle module Verifiers # = Ruby Verifiers # # The verifiers in this module are ruby specific. module Ruby Sprinkle::Verify.register(Sprinkle::Verifiers::Ruby) # Checks if ruby can require the <tt>files</tt> given. <tt>rubygems</tt> # is always included first. def ruby_can_load(*files) # Always include rubygems first files = files.unshift('rubygems').collect { |x| "require '#{x}'" } @commands << "ruby -e \"#{files.join(';')}\"" end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
auser-sprinkle-0.1.6 | lib/sprinkle/verifiers/ruby.rb |
mitchellh-sprinkle-0.1.6 | lib/sprinkle/verifiers/ruby.rb |