Sha256: 77869ff3f3816d8eb54f3c8027d8f8b7c952bbacfb4c51a725db016c05a896e4

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

require 'commands/meta/command'

module Nutella
  class Reset < Command
    @description = 'Resets nutella to factory settings'
  
    def run(args=nil)
      if system "rm -rf $HOME/.nutella"
        console.success "Successfully reset nutella to factory settings"    
      else
        console.error 'Whoops...something went wrong while resetting nutella to factory settings'
      end
    end

  end
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nutella_framework-0.9.2 lib/commands/reset.rb
nutella_framework-0.9.1 lib/commands/reset.rb
nutella_framework-0.9.0 lib/commands/reset.rb
nutella_framework-0.8.0 lib/commands/reset.rb
nutella_framework-0.7.3 lib/commands/reset.rb
nutella_framework-0.7.2 lib/commands/reset.rb
nutella_framework-0.7.1 lib/commands/reset.rb