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

padrino gen task bad argument parsing #2163

Closed
jorgefuertes opened this issue Nov 29, 2017 · 1 comment
Closed

padrino gen task bad argument parsing #2163

jorgefuertes opened this issue Nov 29, 2017 · 1 comment

Comments

@jorgefuertes
Copy link
Contributor

Do you want to request a feature or report a bug?

bug

What is the current behavior?

$> padrino gen task -n main -d "Just a test task" test
create  tasks/main_a.rake

Generated file has wrong name and description:

namespace :main do
  desc "Just"
  task :a => :environment do
    # This is a custom task.
  end
end

What is the expected behavior?

create tasks/main_test.rake

Having this file the following content:

namespace :main do
  desc "Just a test task"
  task :test => :environment do
    # This is a custom task.
  end
end

Which versions of Ruby, Padrino, Sinatra, Rack, OS are you using? Did this work in previous versions?

  • Ruby 2.4.4
  • Padrino v. 0.14.1.1

But never worked.

@ujifgc ujifgc closed this as completed in 64240fa Dec 9, 2017
@ujifgc
Copy link
Member

ujifgc commented Dec 9, 2017

Thanks for the report.

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