-
Notifications
You must be signed in to change notification settings - Fork 59
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
Various improvements to the exported files controller #292
base: master
Are you sure you want to change the base?
Changes from all commits
a706637
1eebb64
38712d1
f4efe8f
7b0cb79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,13 +62,11 @@ | |
|
||
#support paths | ||
get "utils(.:format)", controller: "support", action: "index", as: "utils" | ||
get "utils/files/:id(.:format)", controller: "support", action: "destroy", constraints: { id: /[^\/]+/ }, as: "utils_files" | ||
delete "utils/files/:id(.:format)", controller: "support", action: "destroy", constraints: { id: /[^\/]+/ }, as: "utils_files" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Metrics/LineLength: Line is too long. 128/100 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this require some change in the cli? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it's not part of the CLI yet. |
||
get "utils/chef(.:format)", controller: "support", action: "export_chef", as: "export_chef" | ||
get "utils/supportconfig(.:format)", controller: "support", action: "export_supportconfig", as: "export_supportconfig" | ||
get "utils/:controller/1.0/export(.:format)", action: "export", as: "utils_export" | ||
get "utils/:controller/1.0(.:format)", action: "utils", as: "utils_barclamp" | ||
get "utils/import/:id(.:format)", controller: "support", action: "import", constraints: { id: /[^\/]+/ }, as: "utils_import" | ||
get "utils/upload/:id(.:format)", controller: "support", action: "upload", constraints: { id: /[^\/]+/ }, as: "utils_upload" | ||
get "utils/repositories(.:format)", controller: "repositories", action: "index", as: "repositories" | ||
post "utils/repositories/sync(.:format)", controller: "repositories", action: "sync", as: "sync_repositories" | ||
post "utils/repositories/activate(.:format)", controller: "repositories", action: "activate", as: "activate_repository" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MINOR: i would call it
tmpdir_path
for consistencyor as an alternative just use
tmpdir = Dir.mktmpdir(Pathname.new(tmpdir))
and reference it with.to_s
where needed