Ejemplo n.º 1
0
 def alias_groups(cls):
     return BuildFileAliases(
         targets={"page": Page},
         objects={
             "Wiki": Wiki,
             "wiki_artifact": WikiArtifact,
             "confluence": Wiki(name="confluence_wiki", url_builder=None),
         },
     )
Ejemplo n.º 2
0
 def alias_groups(cls):
     return BuildFileAliases(
         targets={
             'page': Page,
         },
         objects={
             'Wiki': Wiki,
             'wiki_artifact': WikiArtifact,
             'confluence': Wiki(name='confluence_wiki', url_builder=None),
         },
     )
Ejemplo n.º 3
0
def build_file_aliases():
  return BuildFileAliases(
    objects={
      'confluence': Wiki(name='confluence', url_builder=ConfluenceSubsystem.confluence_url_builder)
    },
  )
Ejemplo n.º 4
0
from pants.goal.task_registrar import TaskRegistrar as task


def confluence_url_builder(page, config):

    title = config['title']

    url = 'https://confluence.twitter.biz/display/%s/%s' % ( # our wiki
        config['space'],
        urllib.quote_plus(title))

    return title, url


confluence_wiki = Wiki(
    name='confluence',
    url_builder=confluence_url_builder
)


def build_file_aliases():

    return BuildFileAliases(
	
	targets={'page': Page},
        objects={'confluence': confluence_wiki, 'wiki_artifact': WikiArtifact},

    )


class OurConfluence(ConfluencePublish):