Skip to content

Commit

Permalink
chore(rakefile): update tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Jan 20, 2025
1 parent 020e65d commit 5417b94
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 15 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,25 @@ end
desc "Sync'ing personal and work settings"
task :work do
task :pull do
section "Cloud -> Work Mac"
section "Cloud -> Mac"

Rake::Task['work:restore:files'].invoke

# Install packages
Rake::Task['install:brew_packages'].invoke
Rake::Task['install:brew_cask_packages'].invoke
Rake::Task['install:brew_clean_up'].invoke
Rake::Task['install:gems'].invoke unless testing?
Rake::Task['install:npm'].invoke unless testing?
Rake::Task['install:pip'].invoke unless testing?

# App config
Rake::Task['install:app_config'].invoke
Rake::Task['install:dotfiles'].invoke

end
task :push do
section "Work Mac -> Cloud"
section "Mac -> Cloud"

Rake::Task['work:backup:files'].invoke
end
Expand Down
4 changes: 2 additions & 2 deletions tasks/work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
run %( /bin/date -u )

dirs = {
# '.dotfiles' => "#{ENV['STORAGE_FOLDER']}:dotfiles",
'.dotfiles' => "#{ENV['STORAGE_ENCRYPTED_FOLDER']}:dotfiles",
'Code' => "#{ENV['STORAGE_ENCRYPTED_FOLDER']}:Code"
}

Expand All @@ -24,7 +24,7 @@
run %( /bin/date -u )

dirs = {
# '.dotfiles' => "#{ENV['STORAGE_FOLDER']}:dotfiles",
'.dotfiles' => "#{ENV['STORAGE_ENCRYPTED_FOLDER']}:dotfiles",
'Code' => "#{ENV['STORAGE_ENCRYPTED_FOLDER']}:Code"
}

Expand Down

0 comments on commit 5417b94

Please sign in to comment.