Remove user from Gitorious. Using script/console to manage Gitorious from Backend

By neokrates, written on October 10, 2010

howto

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • Which Selenium configurations do you use to test your web front end?

    • We use other tool (80%, 12 Votes)
    • Selenium Grid (13%, 2 Votes)
    • Selenium Grids under CI (like Hudson or TeamCity) (7%, 1 Votes)
    • Single Selenium (0%, 0 Votes)
    • Many Selenium grids on one Server (0%, 0 Votes)
    • Other config (0%, 0 Votes)

    Total Voters: 15

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

In current version many user related functions are not accessible from Gitorious Web Interface. You can use ruby console to connect with current Gitorious instance and remove the user.

Login to the Gitorious host. You will likely need the root to do that or at least the user under which Gitorious runs.

Find your gitorious console

Smth. like locate console|grep script/console

1

What is your environment’s name

Per default, environment may be called “production”. To find out, you can try the log directory, in my case it is in /var/www/gitorious/log/. In my case there was production.log.
That is the environment name.

2

Start console


/var/www/gitorious/script/console

If you guessed your YOUR_ENV_NAME correctly, you get:

Loading production environment (Rails 2.3.5)

3

Find & delete user

Given your user is “username”, type in console:

user = User.find_by_login "username"

You get smth like:

=> #<User id: 7, login: "username", email: "[email protected]", ... >

 
to delete type: user.destroy

Have fun ;)

 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: +4 (from 4 votes)
4 votes 'YES'  0 votes 'NO'

LEARN MORE (amazon bookstore)

TAGS

RELATED
Pages
Posts
    nope :(

SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

INCOMING SEARCH TERMS


Leave a Reply