Sha256: 946251a78208c22454d9f3aa13d5869d3af617bd06205d9ba74edd50bcf72925
Contents?: true
Size: 520 Bytes
Versions: 32
Compression:
Stored size: 520 Bytes
Contents
module Penchant class DotPenchant class << self def run(env = nil, deployment = false) dot_penchant = new dot_penchant.run(env) dot_penchant end end def run(env = nil, deployment = false) instance_eval(File.read('.penchant')) end def rake(*tasks) command = [ "rake", *tasks ] command.unshift("bundle exec") if gemfile? Kernel.system command.join(' ') end private def gemfile? File.file?('Gemfile') end end end
Version data entries
32 entries across 32 versions & 1 rubygems