Sha256: d1b0c31161498f4aee1744d18040f8d959562e9be3ac2eb5bc3edfa9a4c10346
Contents?: true
Size: 838 Bytes
Versions: 5
Compression:
Stored size: 838 Bytes
Contents
module Cascadence class Commander class Generate < Thor include Singleton include Thor::Actions attr_accessor :project_name, :project_dir desc "dosomeshit [FLOWNAME] [PROJECTDIR]", "Generates a project name." def dosomeshit(flowname, project_dir=Dir.pwd) _setup_instance_variables!(flowname, project_dir) directory _get_source_path, _get_destination end def self.source_root File.expand_path("../../templates", __FILE__) end private def _setup_instance_variables!(flowname, project_dir) @project_name = flowname @project_dir = project_dir end def _get_source_path self.class.source_root end def _get_destination File.join(project_dir, project_name, "flows") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems