Skip to content

Commit

Permalink
Remove usage of name member
Browse files Browse the repository at this point in the history
Following osrf/ghrocker#245
  • Loading branch information
tfoote committed Mar 5, 2024
1 parent e00f54a commit d1edbff
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/ghrocker/ghpages_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@

class GHPages(RockerExtension):

name = 'ghpages'

@classmethod
def get_name(cls):
return cls.name
@staticmethod
def get_name():
return 'ghpages'

def precondition_environment(self, cli_args):
pass
Expand All @@ -40,7 +38,7 @@ def get_preamble(self, cli_args):
return ''

def get_snippet(self, cliargs):
snippet = pkgutil.get_data('ghrocker', 'templates/%s_snippet.Dockerfile.em' % self.name).decode('utf-8')
snippet = pkgutil.get_data('ghrocker', 'templates/%s_snippet.Dockerfile.em' % self.get_name()).decode('utf-8')
return empy_expand(snippet, {})

def get_docker_args(self, cli_args):
Expand Down

0 comments on commit d1edbff

Please sign in to comment.