Sha256: f8c6058d127347721bd5bb964721b27ef5b904c650f2ee1b3927d1c8ed4cdf7f
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
# frozen_string_literal: true module Roro class CLI < Thor desc 'generate:adventure', 'Generate adventure for adventure tests.' map 'generate:adventure' => 'generate_adventure' method_options adventure: :string def generate_adventure(adventure) @env = { adventure_name: adventure.split('/').last } location = "lib/roro/stacks/#{adventure}" directory 'adventure', location, @env generate_adventure_tests end no_commands do def adventure_name @env[:adventure_name] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.33 | lib/roro/cli/generate/generate_adventure.rb |