Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instance variable @_env not defined error #176

Closed
tamadamas opened this issue Sep 4, 2014 · 1 comment
Closed

instance variable @_env not defined error #176

tamadamas opened this issue Sep 4, 2014 · 1 comment

Comments

@tamadamas
Copy link

SSHKit::Runner::ExecuteError: Exception while executing on host: instance variable @_env not defined
~/.rvm/gems/ruby-1.9.3-p547@ges/gems/sshkit-1.5.1/lib/sshkit/backends/abstract.rb:88:in `remove_instance_variable'
~/.rvm/gems/ruby-1.9.3-p547@ges/gems/sshkit-1.5.1/lib/sshkit/backends/abstract.rb:88:in `with'

And it falls on next task

desc 'Create backup of the DB'
  task :backup do
    on roles(:db) do
      within release_path do
        with rails_env: fetch(:rails_env) do
          with 'BACKUP_PATH' => shared_path.join('backups') do
            execute :rake, 'db:backup'
          end
        end
      end
    end
  end

And task completes successfully and I can see correct dump.

@tamadamas
Copy link
Author

following on this #43 I understand you don't support nested with, so I put it on one with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants