1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

R8.org

Last updated at Posted at 2020-12-23

!Mac OS X-10.15.7 !ruby-2.7.1p83

第8回

rake

rubyでいうmakeやantにあたるらしい。ちょっとしたタスクを便利にしてくれるもののようだ。

desc 'git pull'
task :pull do
  p comm = "git pull origin main"
  system comm 
  exit
end

desc 'git push'
task :push do
  p comm = "git add -A"
  system comm
  p comm = "git commit -m \'hoge\'"
  system comm
  p comm = "git pull origin main"
  system comm
  p comm = "git push origin main"
  system comm
  exit
end

いつもの作業をRakefileに覚えさせることが出来るようだ。

> rake

rakeの後に続けてpullやらpushを入力すると上記で覚えた作業をこなしてくれる。

参考サイト

チャート式ruby-appendix


  • source ~/grad_members_20f/members/skona/memo/R8.org
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?