Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Adding rake task to register crawl object from file #2

Merged
merged 1 commit into from
Aug 25, 2015

Conversation

aalsum
Copy link
Contributor

@aalsum aalsum commented Aug 18, 2015

No description provided.

@aalsum aalsum force-pushed the registering-script branch 4 times, most recently from b3dcdb2 to 745d9ea Compare August 18, 2015 22:23
@aalsum
Copy link
Contributor Author

aalsum commented Aug 18, 2015

@tingulfsen here you go :)

@aalsum aalsum force-pushed the registering-script branch 4 times, most recently from 8058611 to adc2b17 Compare August 18, 2015 23:42
fail_count = 0
registrar = Was::Registrar::RegisterCrawlObject.new

input_file = File.open(input_file_path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end
puts "\nRegistering crawl objects:\nSuccess: #{success_count}\nFail: #{fail_count}"
input_file.close
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tingulfsen I updated the code with the closing statement.

tingulfsen added a commit that referenced this pull request Aug 25, 2015
Adding rake task to register crawl object from file
@tingulfsen tingulfsen merged commit 496633e into master Aug 25, 2015
@tingulfsen tingulfsen deleted the registering-script branch August 25, 2015 19:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants