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 ItemEstoque < AR | |
# id, produto, quantidade, custo_total | |
end | |
class LogEstoque < AR | |
# id, item_estoque, quantidade, custo_movimentacao, data | |
end | |
class RetirarEstoqueController < ApplicationController |
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
task :restart_zero_downtime do | |
run "touch #{current_path}/tmp/restart.txt" | |
end |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<server xmlns='urn:jboss:domain:1.3'> | |
<extensions> | |
<extension module='org.jboss.as.clustering.infinispan'/> | |
<extension module='org.jboss.as.clustering.jgroups'/> | |
<extension module='org.jboss.as.cmp'/> | |
<extension module='org.jboss.as.configadmin'/> | |
<extension module='org.jboss.as.connector'/> | |
<extension module='org.jboss.as.deployment-scanner'/> | |
<extension module='org.jboss.as.ee'/> |
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
# encoding: utf-8 | |
class String | |
def starts_with?(prefix) | |
prefix = prefix.to_s | |
self[0, prefix.length] == prefix | |
end | |
end | |
all_files = Dir["./**/*.rb"] | |
all_files.each do |file| |