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
set :stages, %w(staging production beta) | |
set :default_stage, "staging" | |
require 'capistrano/ext/multistage' | |
# Ok, capistrano_recipes totally breaks not only multistage... | |
# require 'capistrano_recipes' | |
require 'capistrano_colors' | |
require 'bundler/capistrano' | |
require 'thinking_sphinx/deploy/capistrano' |
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
ant@antu:~/rorprojects/zn_new$ cap deploy | |
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was before_update_code) | |
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_update_code) | |
triggering start callbacks for `deploy' | |
* == Currently executing `multistage:ensure' | |
*** Defaulting to `staging' | |
* == Currently executing `staging' | |
Identity added: /home/ant/.ssh/id_rsa (/home/ant/.ssh/id_rsa) | |
* == Currently executing `deploy' | |
* == Currently executing `deploy:update' |
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 Account < ActiveRecord::Base | |
has_may :piece_of_works | |
# some code | |
end | |
class Customer < Account | |
has_many :projects | |
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
When /^I set the Rule slider to 30$/ do | |
select "30", from: "Weighting" | |
end | |
When /^I select "(.*?)" from the the Rule (\d+) Metric drop\-down$/ do |arg1, arg2| | |
pending # express the regexp above with the code you wish you had | |
end | |
When /^I select "(.*?)" from the the Rule (\d+) Timeframe drop\-down$/ do |arg1, arg2| |
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
#!/usr/bin/env bash | |
apt-get remove ruby rubygems ruby1.9 rubygems1.9 ruby1.8 rubygems1.8 ruby1.9.2 rubygems1.9.2 | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev autoconf | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.gz | |
tar -xvzf ruby-1.9.3-p327.tar.gz | |
cd ruby-1.9.3-p327/ | |
./configure --prefix=/usr/local | |
make |
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
#!/usr/bin/env bash | |
apt-get remove ruby rubygems ruby1.9 rubygems1.9 ruby1.8 rubygems1.8 ruby1.9.2 rubygems1.9.2 | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6 libreadline6-dev libyaml-dev autoconf | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz | |
tar -xvzf ruby-1.9.3-p448.tar.gz | |
cd ruby-1.9.3-p448/ | |
./configure --prefix=/usr/local | |
make |
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
{ | |
"Default storybook story": { | |
"scope": "typescript,typescriptreact", | |
"prefix": "ds", | |
"body": [ | |
"import React from \"react\";", | |
"import { Story } from \"@storybook/react/types-6-0\";", | |
"import { Props, $1 as Component } from \"./$1\";", | |
"", | |
"const storyToExport = {", |