lib/daigaku/terminal/courses.rb in daigaku-0.1.1 vs lib/daigaku/terminal/courses.rb in daigaku-0.2.0

- old
+ new

@@ -55,11 +55,11 @@ ensure FileUtils.rm(file_name) if File.exist?(file_name.to_s) end method_option :all, type: :boolean, aliases: '-a', desc: 'Update all courses' - desc 'update [COURSE_NAME] [OPTIONS]', 'Update Daigak courses.' + desc 'update [COURSE_NAME] [OPTIONS]', 'Update Daigaku courses.' def update(course_name = nil) if options[:all] courses = Loading::Courses.load(Daigaku.config.courses_path) courses.each { |course| update_course(course) } elsif course_name @@ -96,10 +96,10 @@ unless Dir.exist?(path) print_course_not_available(course_name) return end - get_confirm("Are you shure you want to delete the course \"#{course_name}\"?") do + get_confirm("Are you sure you want to delete the course \"#{course_name}\"?") do FileUtils.remove_dir(path) QuickStore.store.delete(Storeable.key(course_name, prefix: 'courses')) say_info "The course \"#{course_name}\" was successfully deleted." end else