Sha256: f27baa8d1f14f0625368256eff30263ea76ee236f1b6cc82b7c91cdd33907081
Contents?: true
Size: 1.05 KB
Versions: 11
Compression:
Stored size: 1.05 KB
Contents
# Rakefile for Flombe # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # require 'fileutils' require 'chef' require File.join(File.dirname(__FILE__), 'config', 'rake') load 'chef/tasks/chef_repo.rake' namespace :flombe do desc "Cleanses the environment, removing all the core junk that was installed." task :clean do if !`which brew`.chomp.empty? prefix = `brew --prefix`.chomp sh %{rm -rf #{prefix}/Cellar} sh %{brew prune} sh %{rm -rf #{prefix}/Library #{prefix}/.git #{prefix}/.gitignore #{prefix}/bin/brew #{prefix}/README.md #{prefix}/share/man/man1/brew} end if !`which rvm`.chomp.empty? sh %{rvm implode} sh %{gem uninstall rvm} end sh %{rm -rf ~/.flombe ~/.flombe.profile ~/.gemrc ~/.rdebugrc ~/.rvmrc ~/.bash_profile} end end
Version data entries
11 entries across 11 versions & 1 rubygems