Sha256: b92f869320ea4abdaf2b2290e6f11fb2d529f1197dc4c92d5f45e4178be5436a
Contents?: true
Size: 838 Bytes
Versions: 1
Compression:
Stored size: 838 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../", __FILE__) require "ro_commands/base" require "fileutils" module RoCommands class Shortcuts # def map # { # ro_server: "rails", # } # end # # def create # map.each do |shortcut, full| # shortcut = shortcut.to_s # puts "creating bin/#{shortcut}" # _create shortcut, full # end # end # # private # def file(path) # dir = File.dirname path # FileUtils.mkpath dir # FileUtils.touch path # end # # def _create(shortcut, full) # bin = File.expand_path("../../bin", __FILE__) # path = File.join(bin, shortcut) # # file(path) # ctn = <<-CONTENT #Kernel.system "ro <%= full %>" # CONTENT # # result = ERB.new(ctn).result(binding) # File.write(path, result) # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ro_commands-0.0.1 | lib/shortcuts.rb |