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

Version Path
flombe-0.1.0.12 Rakefile
flombe-0.1.0.11 Rakefile
flombe-0.1.0.10 Rakefile
flombe-0.1.0.9 Rakefile
flombe-0.1.0.8 Rakefile
flombe-0.1.0.7 Rakefile
flombe-0.1.0.6 Rakefile
flombe-0.1.0.5 Rakefile
flombe-0.1.0.4 Rakefile
flombe-0.1.0.3 Rakefile
flombe-0.1.0.2 Rakefile