Sha256: f5b96f81fdfa7155349e216b68a66761b82150466fb6a98c780af398658da5b8
Contents?: true
Size: 555 Bytes
Versions: 7
Compression:
Stored size: 555 Bytes
Contents
module Deano class NameCommand < Deano::Command attr_accessor :args, :name def self.inherited(klass) Command.inherited(klass) end def underscored self.name.underscore end def classified self.name.classify end def initialize(args) self.args = args self.name = ARGV[1] @app_dir = File.expand_path(FileUtils.pwd) end def clean_string(f) f.gsub(Deano.template_dir, @app_dir).gsub("template_app", self.underscored).gsub("TemplateApp", self.classified) end end end
Version data entries
7 entries across 7 versions & 1 rubygems