Merge lp:~ken-vandine/account-plugins/uoa-create into lp:account-plugins

Proposed by Ken VanDine on 2013-05-02
Status: Merged
Approved by: Alberto Mardegan on 2013-05-03
Approved revision: 107
Merged at revision: 106
Proposed branch: lp:~ken-vandine/account-plugins/uoa-create
Merge into: lp:account-plugins
Diff against target: 52 lines (+33/-0)
3 files modified
debian/account-plugin-tools.install (+1/-0)
debian/changelog (+7/-0)
debian/uoa-create (+25/-0)
To merge this branch: bzr merge lp:~ken-vandine/account-plugins/uoa-create
Reviewer Review Type Date Requested Status
Alberto Mardegan (community) 2013-05-02 Approve on 2013-05-03
PS Jenkins bot (community) continuous-integration Approve on 2013-05-02
Review via email: mp+162264@code.launchpad.net

Commit message

added script to add twitter and facebook accounts

Description of the change

added script to add twitter and facebook accounts

To post a comment you must log in.
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
107. By Ken VanDine on 2013-05-02

simplify account creation script

PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Alberto Mardegan (mardy) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/account-plugin-tools.install'
--- debian/account-plugin-tools.install 2012-11-09 16:15:25 +0000
+++ debian/account-plugin-tools.install 2013-05-02 23:38:25 +0000
@@ -1,2 +1,3 @@
1usr/share/account-plugins/tools1usr/share/account-plugins/tools
2usr/bin2usr/bin
3debian/uoa-create /usr/bin/
34
=== modified file 'debian/changelog'
--- debian/changelog 2013-05-02 07:36:47 +0000
+++ debian/changelog 2013-05-02 23:38:25 +0000
@@ -1,3 +1,10 @@
1account-plugins (0.10bzr13.04.30daily13.05.02ubuntu.unity.next-0ubuntu2) UNRELEASED; urgency=low
2
3 * debian/uoa-create
4 - added script to add twitter and facebook accounts
5
6 -- Ken VanDine <ken.vandine@canonical.com> Thu, 02 May 2013 15:32:00 -0700
7
1account-plugins (0.10bzr13.04.30daily13.05.02ubuntu.unity.next-0ubuntu1) raring; urgency=low8account-plugins (0.10bzr13.04.30daily13.05.02ubuntu.unity.next-0ubuntu1) raring; urgency=low
29
3 [ Alberto Mardegan ]10 [ Alberto Mardegan ]
411
=== added file 'debian/uoa-create'
--- debian/uoa-create 1970-01-01 00:00:00 +0000
+++ debian/uoa-create 2013-05-02 23:38:25 +0000
@@ -0,0 +1,25 @@
1#!/bin/bash
2
3usage ()
4{
5 echo "usage: $0 [service] [username]"
6 exit 1
7}
8
9if [ $# -ne 2 ];
10then
11 usage
12fi
13
14service=$1
15username=$2
16
17ID="$(account-console create $service --print-id)"
18account-console edit "$ID" --username $username
19
20
21echo "Logging in to" $service
22account-console login "${ID}" --service $service-microblog
23
24echo "Enabling account"
25account-console edit "${ID}" --enable --service $service-microblog

Subscribers

People subscribed via source and target branches

to all changes: