Sha256: 81e5a3eb2b26644a57cb6e5e64d767a8b6a1062096e13c7f85201d9595766866

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

class ComponentGenerator < Rails::Generators::NamedBase
  source_root File.expand_path('../templates', __FILE__)

  def copy_component_directory
    self.destination_root = "components"

    directory "engine_template", file_name
    chmod "#{file_name}/test.sh", 0755
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
component_generator-0.0.1 lib/generators/component/component_generator.rb