def dedupe_stats_announcement(duplicate_slug, authoritative_slug, noop=False): """De-duplicate Whitehall statistics announcement""" option = ' -n' if noop else '' command = './script/dedupe_stats_announcement{} {} {}'.format( option, duplicate_slug, authoritative_slug) util.bundle_exec('whitehall', command)
def rails_console(app): """Attach to a Rails application's console""" bundle_exec(app, 'rails console')