Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9095627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:39:07+00:00 2026-06-16T23:39:07+00:00

In our redmine setup, corresponding to the project.identifier (not :project_id) we have folders in

  • 0

In our redmine setup, corresponding to the project.identifier (not :project_id) we have folders in another server and the developers store the mysql database dumps related to their project. I am trying to write a plugin which just shows the list of all the database dumps.

For this initially I tried using net/ssh and then the plugin logs into the another server where the db dumps are located and does an ls. I show the ls output in an unordered list in the plugin’s view. For this i should send the project.identifier as the argument to ls to get the list of dumps particular to that project. Could not figure out how to send local variables via Net::SSH.

Then I changed my idea of using net/ssh and now simply executing a local script which does an ssh and ls. Now I want to use project.identifier again as an argument. How can i pass the value of project.identifier as an argument to the command in system call?

This is my controller.

require 'rubygems'
require 'net/ssh'

class BackupsController < ApplicationController
  helper :projects
  unloadable


  def index
  #host = '192.168.122.245'
  #user = 'root'
  #Net::SSH.start( host, user ) do |ssh|
  #@result = ssh.exec!('dumplist website')
  #end
  @identifier = "#{project.identifier}"
  @result = %x[dumpshow @identifier]
  end
end

dumpshow is my script which does an ssh runs ls $1 . I want to send project.identifier as $1

With the above script I am getting the following error.
NameError (undefined local variable or method 'project' for #<BackupsController:0x7ff5b4a756a0>):

To summarize, I wanna use the variables from Redmine,’s core controller and model. This seems to be simple but I am missing it somewhere. Or there should be a very simple way of finding the current project’s identifier as we find out the USer.Current.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:39:08+00:00Added an answer on June 16, 2026 at 11:39 pm

    I got it working. It was just params[:project_id]. Took time for me to get to the vocabulary of redmine. Has got limited dev documentation, i feel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a server setup with Redmine to track our bugs. It seems that
Our Django project is getting huge. We have hundreds of apps and use a
Our current project does not use Hibernate (for various reasons) and we are using
We are starting to use Redmine as our task tracking tool and for some
Our company has a share point document server where the UNC looks something like
Our application is a Java-GWT application that uses Guice-Persist and Guice-Servlet extensively. We have
Our company produces cross-platform software and we have Bamboo instance which is building projects
Our websites article backend does not allow access to anything above </head> which prevents
our project uses HttpRuntime.Cache.Get and HttpRuntime.Cache.Insert for storing and retrieving data from the cache.
We have gmail openid working for more than a year with Redmine 1.3.1 (Rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.