Class: Command::GithubActionsGenerator

Inherits:
Thor::Group
  • Object
show all
Includes:
GeneratorHelpers, Thor::Actions
Defined in:
lib/command/generate_github_actions.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



22
23
24
# File 'lib/command/generate_github_actions.rb', line 22

def self.source_root
  Cpflow.root_path.join("lib")
end

Instance Method Details

#copy_filesObject



15
16
17
18
19
20
# File 'lib/command/generate_github_actions.rb', line 15

def copy_files
  relative_paths = generated_files
  copy_template_files(relative_paths)
  substitute_template_variables(relative_paths)
  make_shell_scripts_executable(relative_paths)
end