Skip to content

Instantly share code, notes, and snippets.

@no-itsbackpack
Last active September 28, 2015 19:59
Show Gist options
  • Select an option

  • Save no-itsbackpack/ab854cb29fb379c33609 to your computer and use it in GitHub Desktop.

Select an option

Save no-itsbackpack/ab854cb29fb379c33609 to your computer and use it in GitHub Desktop.

Revisions

  1. paddingtons_bear revised this gist Sep 28, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion msNix.rb
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    desc 'example rake test that only runs in dev and test'
    namespace :test do
    task :do_something do
    if Rails.env.development? && Rails.env.test?
    if Rails.env.development? || Rails.env.test?
    "do your stuff here"
    end
    end
  2. paddingtons_bear revised this gist Sep 28, 2015. 1 changed file with 10 additions and 7 deletions.
    17 changes: 10 additions & 7 deletions msNix.rb
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,14 @@
    ```ruby
    test.rake

    #test.rake
    desc 'example rake test that only runs in dev and test'
    namespace :test do
    task :do_something do
    if Rails.env.development? && Rails.env.test?
    "do your stuff here"
    end
    task :do_something do
    if Rails.env.development? && Rails.env.test?
    "do your stuff here"
    end
    end
    end
    ```

    # ./Rakefile
    task test: %w(test:do_something)
    task default: [:test]
  3. paddingtons_bear created this gist Sep 28, 2015.
    11 changes: 11 additions & 0 deletions msNix.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ```ruby
    test.rake
    namespace :test do
    task :do_something do
    if Rails.env.development? && Rails.env.test?
    "do your stuff here"
    end
    end
    end
    end
    ```