Sha256: c9fafc30fbf68758546b57b14afcc926d9e363cf4bbe83d6e8a030522372377b

Contents?: true

Size: 577 Bytes

Versions: 4

Compression:

Stored size: 577 Bytes

Contents

#require 'fileutils'
#module RoCommands
#  module Generator
#    class Lib < BaseGenerator
#
#      argument :name
#
#      def create
#        FileUtils.mkdir_p "lib/#{name}"
#        template 'lib.erb', "lib/#{name}.rb"
#      end
#
#      private
#      def template(src, target)
#        if test(?e, File.join(Dir.pwd, 'config'))
#          puts "generating #{target}"
#          ctn = File.read File.expand_path("../templates/#{src}", __FILE__)
#          ctn = ERB.new(ctn).result(binding)
#          File.write target, ctn
#        end
#      end
#
#    end
#  end
#end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ro_commands-0.0.4 lib/ro_commands/generators/lib.rb
ro_commands-0.0.3 lib/ro_commands/generators/lib.rb
ro_commands-0.0.2 lib/ro_commands/generators/lib.rb
ro_commands-0.0.1 lib/ro_commands/generators/lib.rb