rakefile Questions
2
Solved
I was seeding a development postgres database with a few thousand records from Faker when I caught a problem with the seed file. I aborted the seed operation and rolled back the inserts and fixed t...
Ekg asked 7/10, 2016 at 5:23
1
I have a C++ project that I build using rake rather than make. To set this up in Eclipse I disabled the CDT and Scanner builders and created a rake builder pointing to the rake executable. This cau...
2
Solved
I have started learning Ruby and just tried out my first hello world program in NetBeans IDE. I have one doubt, I can see that the new project wizard created set of package structure. It had one "R...
9
Solved
I have the following Rakefile:
task :test_commas, :arg1 do |t, args|
puts args[:arg1]
end
And want to call it with a single string argument containing commas. Here's what I get:
%rake 'test_co...
Donny asked 31/8, 2011 at 14:6
1
Solved
In this Rakefile I want to set my default task to :test.
task :default => :test
Rubocop has now entered the scene and states
Style/HashSyntax: Use the new Ruby 1.9 hash syntax.
Great. I do...
3
Solved
Currently I'm trying split up my rake files to organize them better. For this, I've added a rake folder to my assets dir, that holds one rake file for each group of tasks.
As I'm coming from PHP, ...
2
This is my full script.
Am trying to make a rake task which collects data from the files in the directory and loads them in the mysql.
I fixed the local-infile = 1, Nothing works. It just gives m...
Monologue asked 30/1, 2013 at 9:18
2
Solved
I'm looking for a way to be able to check if a certain rake task exists from within the Rakefile. I have a task dependency that I only want to include as a dependency if that task is available. In ...
1
Solved
I'm trying to use Hashie outside of Rails. In my rakefile, I've included require hashie/hash, but I still get the NoMethodError. I've tried using require hash; no luck there either.
This is the lin...
Shelleyshellfire asked 23/12, 2014 at 20:38
7
Solved
On a freshly created Rails project (generated by rails someName), one can run some 'default' rake tasks like:
rake test
rake db:migrate
etc
Question is, where does these tasks get described? Th...
Potluck asked 20/1, 2011 at 2:28
1
Solved
According to this article, we can test around our gem code by adding those lines to our rakefile:
task :console do
require 'irb'
require 'irb/completion'
require 'my_gem' # You know what to do....
1
Solved
There are a lot of threads on here about this already I know but none of the titles have this worded exactly like I did. I hope that we can clear this up a bit.
$:.unshift(File.expand_path("../../...
Pinpoint asked 7/9, 2013 at 18:38
1
Solved
I've written a gem elastic-beanstalk which is to be used inside a rails project file structure, as well as in a standalone CI environment where the rails dir and files are not available (without un...
1
Solved
I'm hosting a private gem on Gemfury and would like to override rake release task to push to my Gemfury private URL instead of Rubygems.
I'de like to keep the Git tag creation though.
Any ideas w...
Perri asked 14/8, 2013 at 10:53
3
Solved
My goal is to copy a set of files specified by a pattern to the target dir. The files in source directory can have subdirs.
I tried:
cp_r(Dir.glob('**/*.html'), @target_dir):
and
cp_r(FileList...
3
Solved
I followed all instructions in Octopress Documentation:
sddhrthrt@thinkpad:~/octopress$ rake generate
## Generating Site with Jekyll
directory source/stylesheets/
create source/stylesheets/scre...
1
Solved
I have a Rakefile which has tasks for deploying or building an application. This Rakefile is used in both production and development.
I would like the build task to know what the environment is. C...
Electuary asked 22/1, 2013 at 11:2
1
Solved
Part of my seeds.rb loads a lot of data into the database. I want to be able to selectively load this data. E.g.
$ rake db:seed
or
$rake db:seed[0]
would just load the necessary data to run ...
Odin asked 22/1, 2013 at 2:4
1
Solved
I have a gem with a default configuration YAML file, some_config.yml. I want to create a rake task to copy that file into the config/ directory of my rails application. How can I achieve this?
3
Solved
I'm generating test tasks dynamically based on existing test files in a Rakefile. Consider you have various unit test files named after the pattern test_<name>.rb. So what I'm doing is creati...
2
Solved
Here's my primary rake file
subrake = 'subrake'
task :init => [subrake] do
#call subrake.build
end
import subrake
I see documentation on how the above steps work, but I can't figure out ho...
3
Solved
I am trying to get a .rb file to make another .rb file within a specific directory with specified content, when that file is run. I dont know whether the best way to do this would be with a Ruby fi...
Gosplan asked 15/2, 2011 at 20:18
1
© 2022 - 2024 — McMap. All rights reserved.