Sha256: 740a1162e757cba1e9232b4b50f784aa74c434f6e393b47242495c34c669cf57

Contents?: true

Size: 586 Bytes

Versions: 6

Compression:

Stored size: 586 Bytes

Contents

class Lono::CLI::New::Test
  class Blueprint < Sequence
    argument :name

    def self.cli_options
      [
        [:force, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files"],
      ]
    end
    cli_options.each { |args| class_option(*args) }

    def set_source
      name = Lono.config.test.framework
      framework = Lono::Plugin.find(name: name, type: "test_framework")
      set_template_paths("#{framework.root}/lib/templates/blueprint")
    end

    def generate
      dest = "app/blueprints/#{name}"
      directory ".", dest
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/cli/new/test/blueprint.rb
lono-8.0.0.pre.rc5 lib/lono/cli/new/test/blueprint.rb
lono-8.0.0.pre.rc4 lib/lono/cli/new/test/blueprint.rb
lono-8.0.0.pre.rc3 lib/lono/cli/new/test/blueprint.rb
lono-8.0.0.pre.rc2 lib/lono/cli/new/test/blueprint.rb
lono-8.0.0.pre.rc1 lib/lono/cli/new/test/blueprint.rb