Sha256: 5608b27ad06b732e52c5e0faa794a57958259b73f3e77677cb4053bd6003c7ab
Contents?: true
Size: 719 Bytes
Versions: 7
Compression:
Stored size: 719 Bytes
Contents
require 'eucalypt/eucalypt-generate/namespaces/generate-helper/generators/helper' require 'eucalypt/app' require 'eucalypt/errors' require 'eucalypt/helpers' module Eucalypt class Generate < Thor include Eucalypt::Helpers using Colorize option :spec, type: :boolean, default: true, desc: "Include a helper spec file" desc "helper [NAME]", "Generates a helper".colorize(:grey) def helper(name) directory = File.expand_path('.') if Eucalypt.app? directory helper = Eucalypt::Generators::Helper.new helper.destination_root = directory helper.generate(name: name, spec: options[:spec]) else Eucalypt::Error.wrong_directory end end end end
Version data entries
7 entries across 7 versions & 1 rubygems