Class: Depec::Target::GithubActions

Inherits:
Base
  • Object
show all
Defined in:
lib/depec/target/github_actions.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Depec::Target::Base

Instance Method Details

#used?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/depec/target/github_actions.rb', line 14

def used?
  File.exist?(workflows_dir)
end

#workflows_dirString

Returns:

  • (String)


7
8
9
# File 'lib/depec/target/github_actions.rb', line 7

def workflows_dir
  File.join(@dir, '.github', 'workflows')
end