Sha256: 1e9a497a9c4fa75f81e44eec193d2352ace49cc4a44f37c24c79bbe3d2a02627

Contents?: true

Size: 412 Bytes

Versions: 21

Compression:

Stored size: 412 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

21 entries across 21 versions & 1 rubygems

Version Path
padrino-gen-0.10.1 lib/padrino-gen/command.rb
padrino-gen-0.10.0 lib/padrino-gen/command.rb
padrino-gen-0.9.29 lib/padrino-gen/command.rb
padrino-gen-0.9.28 lib/padrino-gen/command.rb
padrino-gen-0.9.27 lib/padrino-gen/command.rb
padrino-gen-0.9.26 lib/padrino-gen/command.rb
padrino-gen-0.9.24 lib/padrino-gen/command.rb
padrino-gen-0.9.25 lib/padrino-gen/command.rb
padrino-gen-0.9.23 lib/padrino-gen/command.rb
padrino-gen-0.9.22 lib/padrino-gen/command.rb
padrino-gen-0.9.21 lib/padrino-gen/command.rb
padrino-gen-0.9.20 lib/padrino-gen/command.rb
padrino-gen-0.9.19 lib/padrino-gen/command.rb
padrino-gen-0.9.18 lib/padrino-gen/command.rb
padrino-gen-0.9.17 lib/padrino-gen/command.rb
padrino-gen-0.9.16 lib/padrino-gen/command.rb
padrino-gen-0.9.15 lib/padrino-gen/command.rb
padrino-gen-0.9.14 lib/padrino-gen/command.rb
padrino-gen-0.9.13 lib/padrino-gen/command.rb
padrino-gen-0.9.12 lib/padrino-gen/command.rb