Sha256: 28311381aebfb0acd300d98651c03f82bec9753ccfdcf36964a7d659b7fe0248
Contents?: true
Size: 521 Bytes
Versions: 9
Compression:
Stored size: 521 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}") # def self.bin_gen(*args) @_padrino_gen_bin ||= [Padrino.ruby_command, File.expand_path("../../../bin/padrino-gen", __FILE__)] system *@_padrino_gen_bin, *args end end
Version data entries
9 entries across 9 versions & 1 rubygems