Sha256: 29f55e2c7af0977017e0684011785ed598d775c3a297d88a41a174cccd6b1ef3

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

require "generator/gene_base"

class Create < Thor::Group
  include Thor::Actions
  include GeneratorBase::Template
  
  argument :file_name
  
  def self.source_root
    File.dirname(__FILE__)
  end
  
  def create_lib_file
    templater "lib/app.txt"
  end
  
  def create_version
    templater "lib/version.rb"
  end
  
  def create_readme
    create_file "#{file_name}/README.md"
    say "[!]warning: please write yourself readme file"
  end
  
  def comment
    say "template was successfully! please check your app: #{file_name}", :green
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
centuria-0.2.3 lib/centuria/generator/create.rb
centuria-0.2.2 lib/centuria/generator/create.rb