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
1=== modified file 'debian/account-plugin-tools.install'
2--- debian/account-plugin-tools.install 2012-11-09 16:15:25 +0000
3+++ debian/account-plugin-tools.install 2013-05-02 23:38:25 +0000
4@@ -1,2 +1,3 @@
5 usr/share/account-plugins/tools
6 usr/bin
7+debian/uoa-create /usr/bin/
8
9=== modified file 'debian/changelog'
10--- debian/changelog 2013-05-02 07:36:47 +0000
11+++ debian/changelog 2013-05-02 23:38:25 +0000
12@@ -1,3 +1,10 @@
13+account-plugins (0.10bzr13.04.30daily13.05.02ubuntu.unity.next-0ubuntu2) UNRELEASED; urgency=low
14+
15+ * debian/uoa-create
16+ - added script to add twitter and facebook accounts
17+
18+ -- Ken VanDine <ken.vandine@canonical.com> Thu, 02 May 2013 15:32:00 -0700
19+
20 account-plugins (0.10bzr13.04.30daily13.05.02ubuntu.unity.next-0ubuntu1) raring; urgency=low
21
22 [ Alberto Mardegan ]
23
24=== added file 'debian/uoa-create'
25--- debian/uoa-create 1970-01-01 00:00:00 +0000
26+++ debian/uoa-create 2013-05-02 23:38:25 +0000
27@@ -0,0 +1,25 @@
28+#!/bin/bash
29+
30+usage ()
31+{
32+ echo "usage: $0 [service] [username]"
33+ exit 1
34+}
35+
36+if [ $# -ne 2 ];
37+then
38+ usage
39+fi
40+
41+service=$1
42+username=$2
43+
44+ID="$(account-console create $service --print-id)"
45+account-console edit "$ID" --username $username
46+
47+
48+echo "Logging in to" $service
49+account-console login "${ID}" --service $service-microblog
50+
51+echo "Enabling account"
52+account-console edit "${ID}" --enable --service $service-microblog

Subscribers

People subscribed via source and target branches

to all changes: