Class: AppMap::Swagger::RakeDiffTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- AppMap::Swagger::RakeDiffTask
- Defined in:
- lib/appmap/swagger/rake_diff_task.rb
Defined Under Namespace
Classes: Command
Constant Summary collapse
- DEFAULT_BASE =
'remotes/origin/main'
- DEFAULT_GIT =
'git'
- DEFAULT_SWAGGER_FILE =
'swagger/openapi_stable.yaml'
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#git_command ⇒ Object
Returns the value of attribute git_command.
-
#name ⇒ Object
Returns the value of attribute name.
-
#swagger_file ⇒ Object
Returns the value of attribute swagger_file.
Instance Method Summary collapse
-
#initialize(*args, &task_block) ⇒ RakeDiffTask
constructor
A new instance of RakeDiffTask.
Constructor Details
#initialize(*args, &task_block) ⇒ RakeDiffTask
Returns a new instance of RakeDiffTask.
97 98 99 100 101 102 103 104 |
# File 'lib/appmap/swagger/rake_diff_task.rb', line 97 def initialize(*args, &task_block) @name = args.shift || :'swagger:diff' @git_command = DEFAULT_GIT @base = DEFAULT_BASE @swagger_file = DEFAULT_SWAGGER_FILE define(args, &task_block) end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
14 15 16 |
# File 'lib/appmap/swagger/rake_diff_task.rb', line 14 def base @base end |
#git_command ⇒ Object
Returns the value of attribute git_command.
14 15 16 |
# File 'lib/appmap/swagger/rake_diff_task.rb', line 14 def git_command @git_command end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/appmap/swagger/rake_diff_task.rb', line 14 def name @name end |
#swagger_file ⇒ Object
Returns the value of attribute swagger_file.
14 15 16 |
# File 'lib/appmap/swagger/rake_diff_task.rb', line 14 def swagger_file @swagger_file end |