Sha256: 0ad5f6f2d5fba93c306de6af59538dff9b28af39cb6643e9be6b4ae917c9e1eb

Contents?: true

Size: 537 Bytes

Versions: 34

Compression:

Stored size: 537 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 args.unshift(@_padrino_gen_bin).join(" ")
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
padrino-gen-0.12.9 lib/padrino-gen/command.rb
padrino-gen-0.13.3.4 lib/padrino-gen/command.rb
padrino-gen-0.14.1.1 lib/padrino-gen/command.rb
padrino-gen-0.14.1 lib/padrino-gen/command.rb
padrino-gen-0.14.0.2 lib/padrino-gen/command.rb
padrino-gen-0.14.0.1 lib/padrino-gen/command.rb
padrino-gen-0.14.0 lib/padrino-gen/command.rb
padrino-gen-0.14.0.rc2 lib/padrino-gen/command.rb
padrino-gen-0.14.0.rc1 lib/padrino-gen/command.rb
padrino-gen-0.13.3.3 lib/padrino-gen/command.rb
padrino-gen-0.13.3.2 lib/padrino-gen/command.rb
padrino-gen-0.12.8.1 lib/padrino-gen/command.rb
padrino-gen-0.13.3.1 lib/padrino-gen/command.rb
padrino-gen-0.13.3 lib/padrino-gen/command.rb
padrino-gen-0.12.8 lib/padrino-gen/command.rb
padrino-gen-0.12.7 lib/padrino-gen/command.rb
padrino-gen-0.12.6 lib/padrino-gen/command.rb
padrino-gen-0.13.2 lib/padrino-gen/command.rb
padrino-gen-0.13.1 lib/padrino-gen/command.rb
padrino-gen-0.13.1.beta1 lib/padrino-gen/command.rb