Class: Inferno::CLI::New
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Inferno::CLI::New
- Includes:
- Utils::IgDownloader, Utils::NamedThorActions, Thor::Actions
- Defined in:
- lib/inferno/apps/cli/new.rb
Constant Summary
Constants included from Utils::IgDownloader
Utils::IgDownloader::FHIR_PACKAGE_NAME_REG_EX, Utils::IgDownloader::FILE_URI_REG_EX, Utils::IgDownloader::HTTP_URI_END_REG_EX, Utils::IgDownloader::HTTP_URI_REG_EX
Constants included from Utils::NamedThorActions
Utils::NamedThorActions::INFLECTOR
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Utils::IgDownloader
#ig_file, #ig_http_url, #ig_path, #ig_registry_url, #load_ig
Methods included from Utils::NamedThorActions
#human_name, #library_name, #module_name, #root_name, #test_suite_id, #title_name
Class Method Details
.banner ⇒ Object
37 38 39 |
# File 'lib/inferno/apps/cli/new.rb', line 37 def self. 'inferno new TEST_KIT_NAME' end |
.source_root ⇒ Object
41 42 43 |
# File 'lib/inferno/apps/cli/new.rb', line 41 def self.source_root File.join(__dir__, 'templates') end |
Instance Method Details
#create_test_kit ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/inferno/apps/cli/new.rb', line 68 def create_test_kit directory('.', root_name, { mode: :preserve, recursive: true, verbose: !['quiet'] }) inside(root_name) do bundle_install inferno_migrate load_igs end say_unless_quiet "Created #{root_name} Inferno Test Kit!", :green return unless ['pretend'] say_unless_quiet 'This was a dry run; re-run without `--pretend` to actually create project', :yellow end |