Sha256: 6919aff8bdb3494266bf353ec2428de22300a9fe20ecaeb587118e6f1323fe45
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
require 'padrino-core/command' module Padrino ## # This method return the correct location of padrino-gen bin or # exec it using Kernel#system with the given args # def self.bin_gen(*args) @_padrino_gen_bin ||= [Padrino.ruby_command, File.expand_path("../../../bin/padrino-gen", __FILE__)] args.empty? ? @_padrino_gen_bin : system(args.unshift(@_padrino_gen_bin).join(" ")) end end # Padrino
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.10.2 | lib/padrino-gen/command.rb |