Sha256: 108041bdfb8fcfb0a2a3def64b1e86f38a367d9c5c2dbd1c55121fe207a3cd4b
Contents?: true
Size: 564 Bytes
Versions: 8
Compression:
Stored size: 564 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 # # @param [Array<String>] args # Splat of arguments to pass to padrino-gen # # @example # Padrino.bin_gen(:app, name.to_s, "-r=#{destination_root}") # # @api semipublic def self.bin_gen(*args) @_padrino_gen_bin ||= [Padrino.ruby_command, File.expand_path("../../../bin/padrino-gen", __FILE__)] system args.unshift(@_padrino_gen_bin).join(" ") end end # Padrino
Version data entries
8 entries across 8 versions & 1 rubygems