This file contains 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
folder = Rails.root.join('public', 'csv', 'data') | |
tables = ActiveRecord::Base.connection.tables | |
tables.each do |table| | |
klass = table.classify.safe_constantize | |
next unless klass && klass.respond_to?(:find_each) | |
data = klass.scoped | |
next unless data.any? | |
This file contains 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
2019-02-18 06:27:29.823 ERROR --- [eduler_Worker-4] c.b.r.p.slack.SlackNotificationPlugin : Got an exception from Freemarker: /etc/rundeck does not exist. | |
java.io.FileNotFoundException: /etc/rundeck does not exist. | |
at freemarker.cache.FileTemplateLoader$1.run(FileTemplateLoader.java:124) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at freemarker.cache.FileTemplateLoader.<init>(FileTemplateLoader.java:121) | |
at freemarker.cache.FileTemplateLoader.<init>(FileTemplateLoader.java:107) | |
at com.bitplaces.rundeck.plugins.slack.SlackNotificationPlugin.<init>(SlackNotificationPlugin.java:121) | |
at sun.reflect.GeneratedConstructorAccessor215.newInstance(Unknown Source) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) |
This file contains 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
{"lastUpload":"2018-05-29T22:43:58.134Z","extensionVersion":"v2.9.2"} |
This file contains 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
// containers/Character.jsx | |
import React, { PropTypes } from 'react' | |
import GameOver from '../components/GameStates' | |
import UserActions from '../components/UserActions' | |
// PropTypes let us require that the correct props are given - | |
// this is just setting up and is not actually connected yet though | |
const propTypes = { | |
name: PropTypes.string.isRequired, | |
hp: PropTypes.number.isRequired, |
This file contains 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
class Folder | |
include ClosedFolder, OpenFolder | |
def initialize(name) | |
@name = name | |
@folder_state = ClosedFolder.new | |
end | |
def pretty_name | |
@folder_state.pretty_name |