Class: Rugular::AppChecker
- Inherits:
-
Object
- Object
- Rugular::AppChecker
- Includes:
- Thor::Shell
- Defined in:
- lib/rugular/tasks/helpers/app_checker.rb
Class Method Summary collapse
Instance Method Summary collapse
- #check_for_rugular_directory ⇒ Object
-
#initialize(task_name:, root_directory:) ⇒ AppChecker
constructor
A new instance of AppChecker.
Constructor Details
#initialize(task_name:, root_directory:) ⇒ AppChecker
Returns a new instance of AppChecker.
12 13 14 15 |
# File 'lib/rugular/tasks/helpers/app_checker.rb', line 12 def initialize(task_name:, root_directory:) @task_name = task_name @root_directory = root_directory end |
Class Method Details
.check_for_rugular_directory(task_name:, root_directory:) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/rugular/tasks/helpers/app_checker.rb', line 5 def self.check_for_rugular_directory(task_name:, root_directory:) new( task_name: task_name, root_directory: root_directory ).check_for_rugular_directory end |
Instance Method Details
#check_for_rugular_directory ⇒ Object
17 18 19 20 21 |
# File 'lib/rugular/tasks/helpers/app_checker.rb', line 17 def check_for_rugular_directory fail() unless rugular_app? return true end |