Class: AppMap::Swagger::RakeDiffTask

Inherits:
Rake::TaskLib
  • Object
show all
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

Instance Method Summary collapse

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

#baseObject

Returns the value of attribute base.



14
15
16
# File 'lib/appmap/swagger/rake_diff_task.rb', line 14

def base
  @base
end

#git_commandObject

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

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/appmap/swagger/rake_diff_task.rb', line 14

def name
  @name
end

#swagger_fileObject

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