This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :slack do | |
task :dropfiles do | |
token = 'xoxp-?????' # h&f | |
# get upser id | |
user_id = 'U02B4AR0N' | |
# get files | |
cmd = "curl -s -X POST --data '#{{token: token, count: 1000, user: user_id}.to_query}' https://slack.com/api/files.list" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :heroku do | |
task :import_remote_database => :environment do | |
return 'Only in development' unless Rails.env.development? | |
puts "From what heroku app do you want to import the database?" | |
remote = STDIN.gets.chomp | |
puts "Creating dump on heroku, takes a while" | |
heroku_command('pg:backups capture', remote) |
NewerOlder